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

Answer Posted / ranjeet garodia

In C++, structure behaves like class like can add function,
and can use properties on class as inheritance, virtual,
etc.
while in C, structure we can have only data member but not
functions.

Is This Answer Correct ?    57 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ stream classes?

802


What is a constant? Explain with an example.

769


Will the following program execute?

813


Difference between inline functions and macros?

790


Specify some guidelines that should be followed while overloading operators?

877


List down the guideline that should be followed while using friend function.

839


Can manipulators fall in love?

773


Mention the ways in which parameterized can be invoked.

743


Is c++ vector dynamic?

758


Give 10 points of differences between C & C++.

881


Why is c++ not purely object oriented?

794


What's the hardest coding language?

793


What do you understand by zombie objects in c++?

841


How would you use the functions memcpy(), memset(), memmove()?

890


What are the uses of c++ in the real world?

795