Dynamic memory allocation

Gapfill exercise

  
Enter your answers in the gaps. When you have entered all the answers, click on the "Check" button.
Define Dynamic memory allocation and there types?
Dynamic allocation in c language enables the C to allocate memory at runtime. Dynamic memory in c language is possible by 4 of stdlib.h file.
malloc(), (), realloc(), and free().

Define malloc() function in C?
The malloc() allocates single block of requested memory.
It doesn't memory at execution time, so it has value initially.
It returns NULL if memory is not .
The of malloc() function is given below:
ptr=(cast-type*)(byte-size)

Define calloc() function in C ?
The () function allocates multiple block of requested .
It initially initialize all bytes to .
It returns NULL if memory is not sufficient.
The syntax of calloc() function is given below:
ptr=(-type*)(number, byte-size)

Define realloc() function in C?
If is not sufficient for () or calloc(), you can reallocate the memory by () function. In short, it changes the size.
syntax of realloc() function.
ptr=(, new-size)

Define free() function in C ?
The occupied by () or calloc() functions must be released by free() function. Otherwise, it will consume until program exit.
Syntax:
free()