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
What is virtual base class?
What is called array?
How static variables and local variablesare similar and dissimilar?
What is flush programming?
What are the five basic elements of a c++ program?
Why do we use pointers in c++?
Difference between strdup and strcpy?
What are the types of pointer?
What is pair in c++?
Define pure virtual function?
What is data binding in c++?
How do you flush std cout?
How can you say that a template is better than a base class?
What is class invariant in c++?
What is name hiding in c++?