Multiple choice technology programming languages

How many differnces are there between structures in C and C++ ?

  1. 1

  2. No difference

  3. 2

  4. 5

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

C++ structures have significant differences from C structures: they can have member functions, access specifiers (public/private/protected), constructors and destructors, support inheritance and polymorphism, and can be used as template parameters. These represent fundamental extensions beyond C's simpler struct model.