Computer Science, asked by smurf670, 2 months ago

Differentiate between calloc() and malloc()​

Answers

Answered by upendraarwal1541
1

Answer:

Difference Between calloc() and malloc()

Malloc() function will create a single block of memory of size specified by the user. Calloc() function can assign multiple blocks of memory for a variable. Malloc function contains garbage value. ... Malloc is faster than calloc.

Answered by singhrohan89506
3

Answer:

Malloc() function will create a single block of memory of size specified by the user. Calloc() function can assign multiple blocks of memory for a variable. Malloc function contains garbage value. The memory block allocated by a calloc function is always initialized to zero.

Explanation:

Mark my answer Brainliest and follow for more

Similar questions