Vidyalelo
C Programming · Q14

Pointer

Programming · C Programming · question 14

Q14

In C, what is the purpose of the 'malloc' function?

A.
Allocate memory on the stack
B.
Allocate memory on the heap
Answer
C.
Allocate memory for a function
D.
Allocate memory for a variable

Answer: Option B

Solution

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