(a) Explain dynamic memory management. Write a C++ program demonstrat…

Previous year question for Object Oriented Programming Using C++.

Question

(a) Explain dynamic memory management. Write a C++ program demonstrating the usage of new and delete operators for a single variable as well as for an array. (10)

(b) How a constructor varies from normal member function? In what order are class constructors and destructors called when a derived class object is created? Illustrate with an example. (10)

Related pages

More PYQs on New and Delete

Open on CachedInfo