Vidyalelo
C Programming · Q4

Memory Allocation

Programming · C Programming · question 4

Q4

What does the 'calloc' function in C do?

A.
Allocates and initializes memory to zero
Answer
B.
Allocates memory and leaves it uninitialized
C.
Deallocates memory
D.
Checks for memory leaks

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board