Vidyalelo
C Programming · Q44

Standard Library Functions

Programming · C Programming · question 44

Q44

Select the right statement with reference to malloc() and calloc().

A.
malloc() does not set the memory to zero whereas calloc() sets allocated memory to zero
Answer
B.
malloc() sets the memory to zero whereas calloc() does not set allocated memory to zero
C.
malloc() sets the memory to zero whereas calloc() sets allocated memory to zero
D.
malloc() does not set the memory to zero whereas calloc() does not set allocated memory to zero

Answer: Option A

Solution

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