Clearly describe the functions of malloc, calloc, realloc and free functions.
Answers
Answered by
1
Explanation:
Malloc() function is used to allocate a single block of memory space while the calloc() in C is used to allocate multiple blocks of memory space. Each block allocated by the calloc() function is of the same size. ... After the memory space is allocated, then all the bytes are initialized to zero.14-May-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
Free(): Frees or empties the previously allocated memory space
hope it's helpful
Answered by
0
you are frnds? please and thank and please Mark as barin list
Similar questions