What are the differences between a struct in C and in C++?

Answer Posted / anoop chaurasiya

c structure does not support the concept of data hiding but
in approach of c++ class support the concept of data hiding.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain function overloading and operator overloading.

621


Explain what happens when a pointer is deleted twice?

733


Can c++ be faster than c?

604


Should the member functions which are made public in the base class be hidden?

559


How is computer programming useful in real life?

596






Eplain extern keyword?

563


Can you please explain the difference between using macro and inline functions?

528


Is c++ a low level language?

513


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

635


What are references in c++?

661


Name the implicit member functions of a class.

596


What is #include iostream h in c++?

614


How const int *ourpointer differs from int const *ourpointer?

608


What is the best c++ compiler?

592


What is c++ iterator?

645