What is the return type of dynamic memory
allocation functions like malloc(), calloc()
and realloc()?
Answers
Answered by
0
Answer:
It is a function which is used to allocate a block of memory dynamically. It reserves memory space of specified size and returns the null pointer pointing to the memory location. The pointer returned is usually of type void. It means that we can assign C malloc() function to any pointer.14-Mar-2021
Calloc(): Allocates the space for elements of an array. Initializes the elements to zero ...
Malloc(): Allocates the memory of requested size and returns the pointer to the first b...
Realloc(): It is used to modify the size of previously allocated memory space
Similar questions