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
Explain the difference between using macro and inline functions?
What does catch(…) mean?
What is code reusability in c++?
What are the various arithmetic operators in c++?
What is a singleton c++?
How do you differentiate between overloading the prefix and postfix increments?
Describe friend function & its advantages.
How can I disable the "echo" feature?
Can constructor be static in c++?
Why we use #include conio h in c++?
How do you find out if a linked-list has an end?
What are single and multiple inheritances in c++?
what is C++ exceptional handling?
Explain this pointer?
What is the difference between method overloading and method overriding in c++?