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
Write my own zero-argument manipulator that should work same as hex?
Why do we need function?
List the types of polymorphism in c++?
To what does “event-driven” refer?
What is the best ide for c++?
What is exception handling? Does c++ support exception handling?
What is a singleton class c++?
Explain rethrowing exceptions with an example?
What is the difference between strcpy() and strncpy()?
what is a class? Explain with an example.
Out of fgets() and gets() which function is safe to use and why?
what are Operators and explain with an example?
Describe new operator?
Can you pass an array to a function in c++?
What is the use of map in c++?