What is the Difference between "C structure" and "C++
structure"?

Answer Posted / brainless

According to c++ standard, structure is a kind of class.
However, all members are default to "public".

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do nonglobal variables default to a) auto b) register c) static

752


What is a pointer with example?

756


What is a storage class?

749


Do we have to use initialization list in spite of the assignment in constructors?

670


Explain some examples of operator overloading?

753






When should overload new operator on a global basis or a class basis?

696


What is c++ namespace?

813


Difference between class and structure.

794


Explain how to initialize a const member data.

682


What is the purpose of extern storage specifier?

712


What is meaning of in c++?

762


Explain binary search.

686


What is an iterator class in c++?

697


What are stacks?

717


What is a driver program?

712