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 c++ iterator?
What are member functions used in c++?
Why cstdlib is used in c++?
What is difference between array and vector in c++?
What is a container class? What are the types of container classes in c++?
What is c++ map?
What it is and how it might be called (2 methods).
What is the difference between interpreters and compilers?
What is the difference between passing by reference and passing a reference?
What are keywords in c++?
How much do c++ programmers make?
Which is the best c++ compiler for beginners?
Can I learn c++ as my first language?
What is virtual base class?
What is scope resolution operator in c++ with example?