Multiple choice

Memory leak is a phenomenon of

  1. dynamically allocated memory which is easily reachable

  2. memory that remains leaking even after allocation

  3. dynamically allocated memory which is not reachable

  4. memory that remains leaking even after deallocation

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Memory leaks occur when programs allocate memory dynamically but lose all references to it, making it unreachable. The memory remains occupied but cannot be used or freed, causing gradual resource depletion.