What are the differences between a struct in C and in C++?
Answer Posted / shakti singh khinchi
In C, structures does not support "virtual" mechanism like
virtual functions whereas C++ structures supports virtual
mechanism like classes.
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What does count ++ do in c++?
Why cout is used in c++?
How do I write a c++ program?
What is scope resolution operator in c++ with example?
Can static member variables be private?
Can I learn c++ without knowing c?
How the endl and setw manipulator works?
Differentiate between structure and class in c++.
What do you mean by inheritance in c++?
What is the insertion operator and what does it do?
What are the 3 levels of programming languages?
Can we make copy constructor private in c++?
What is the keyword auto for?
What happens when the extern "c" char func (char*,waste) executes?