+1 vote
by (524 points)
Difference between malloc() and calloc() memory allocation.

1 Answer

0 votes
by (876 points)
selected by
 
Best answer
Malloc() takes single arguments but calloc() takes two arguments. Both malloc() and calloc() are used for dynamic allocation of memories. Malloc() alocates memory based on specified commands while calloc() allocates multiple blocks of memory.
...