What do you mean by dynamic memory allocation? How can you differ 'new' and 'delete' operator with malloc ( ) and free ( ) function  on behalf of dynamic memory allocation?

Subject Object Oriented Programming
NU Year Set: 4.(a) Marks: 5 Year: 2009

Dynamic memory allocation refers to managing system memory at runtime. Dynamic memory management in C programming language is performed via a group four functions named malloc()calloc()realloc(), and free(). These four dynamic memory allocation functions of the C programming language are defined in the C standard library header file <stdlib.h>. Dynamic memory allocation uses the heap space of the system memory. Let's examine the four dynamic memory management functions in more detail.

Login to post your comment.