Vidyalelo
C Programming · Q24

Memory Allocation

Programming · C Programming · question 24

Q24

What happens if you attempt to free the same block of memory twice in C?

A.
It leads to undefined behavior
Answer
B.
The program terminates
C.
Memory is released, but the pointer remains valid
D.
Memory is leaked

Answer: Option A

Solution

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