What is the difference between malloc() and calloc()?
Shathana. S.R. Answered question May 27, 2023
- malloc() function creates a single block of memory of a specific size.
- calloc() function assigns multiple blocks of memory to a single variable.
Shathana. S.R. Answered question May 27, 2023
The malloc() function generates a single memory block with a predetermined size.
The calloc() function allows several memory blocks to a single variable.
Vishalini.R Answered question May 27, 2023
