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
Explain Memory Allocation in C/C++ ?
Can a constructor be private?
What is capacity in vector in c++?
Why do we use iterators?
What are the uses of static class data?
What is the advantage of an external iterator.
Are c and c++ different?
What is the difference between the functions rand(), random(), srand() and randomize()?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is an inline function in c++?
Is c++ fully object oriented?
Why is main function important?
How many types of modularization are there in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?