Coupon Accepted Successfully!


Memory Management

The C programming language provides several functions for memory allocation and management. These functions can be found in the <stdlib.h> header file.
S.N. Function and Description
1 void *calloc(int num, int size);
This function allocates an array of num elements each of whose size in bytes will be size.
2 void free(void *address); 
This function release a block of memory block specified by address.
3 void *malloc(int num); 
This function allocates an array of num bytes and leave them initialized.
4 void *realloc(void *address, int newsize); 
This function re-allocates memory extending it upto newsize.


Test Your Skills Now!
Take a Quiz now
Reviewer Name