2079 11

CSC166 ยท 2079 ยท 5 marks

How dynamic memory allocation is done using new and delete? Write program for illustrating use of new and delete.

How dynamic memory allocation is done using new and delete? Write program for illustrating use of new and delete. [5]

Object Oriented ProgrammingChapter 2: Basics of C++ programmingDynamic Memory Allocation with new and delete

The process of allocating memory during runtime (execution time) of a program using the heap space of memory, to reduce wastage of memory, is called dynamic memory allocation. - new - memory allocation operator (allocates memory at runtime from heap) - delete - memory release operator (frees the ...