Vidyalelo
C Programming · Q29

Memory Allocation

Programming · C Programming · question 29

Q29

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

A.
To change the size of a previously allocated block of memory
Answer
B.
To allocate memory for a structure
C.
To copy memory
D.
To check for memory leaks

Answer: Option A

Solution

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