Vidyalelo
C Programming · Q6

Memory Allocation

Programming · C Programming · question 6

Q6

What is the return value of the 'malloc' function if it fails to allocate memory?

A.
NULL
Answer
B.
-1
C.
0
D.
1

Answer: Option A

Solution

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