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 the use of virtual destructor?
Write a C++ Program to check whether a number is prime number or not?
Difference between a copy constructor and an assignment operator.
What are c++ tokens?
Why pointer is used in c++?
What is #include iostream?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
Who invented turbo c++?
Can class objects be passed as function arguments?
What is the use of c++ programming language in real life?
What's the hardest coding language?
When do we run a shell in the unix system?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Is there finally in c++?