What are the differences between a struct in C and in C++?
Answer Posted / shakti singh khinchi
In C, structures never support constructors and destructors
whereas C++ supports both of them.
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Differentiate between realloc() and free().
Differentiate between a copy constructor and an overloaded assignment operator.
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Why null pointer is used?
Describe the advantages of operator overloading?
What is atoi?
Will this c++ program execute or not?
What is the need of a destructor? Explain with the help of an example.
What is operators in c++?
What is meant by the term name mangling in c++?
Will rust take over c++?
Which c++ operator cannot overload?
In the derived class, which data member of the base class are visible?
Differences between private, protected and public and give examples.
Is c++ primer good for beginners?