Question:medium

A program allocates memory dynamically using $malloc()$ and does not free it. After repeated execution, what is the most likely outcome?

Show Hint

In modern languages like Java or Python, a "Garbage Collector" automatically handles this. In C and C++, you must be very disciplined: for every $malloc$, there must be a corresponding $free$.
Updated On: Jul 4, 2026
  • Deadlock
  • Memory Leak
  • Thrashing
  • Starvation
Show Solution

The Correct Option is B

Solution and Explanation

Was this answer helpful?
0