+ 1
What is the difference between calloc and realloc and malloc
1 Réponse
0
- malloc: allocates a specified amount of memory but doesn't initialize it.
- calloc: allocates memory for an array of elements and initializes all bytes to zero.
- realloc: changes the size of an already allocated memory block, potentially moving it if the new size requires it.