Beginner C++
Q40 / 100

What is a memory leak?

Correct! Well done.

Incorrect.

The correct answer is B) Heap memory that is allocated but never freed, causing the program to consume increasing memory

B

Correct Answer

Heap memory that is allocated but never freed, causing the program to consume increasing memory

Explanation

Memory leaks occur when new is called without a matching delete. Over time, leaked memory accumulates until the system runs out of resources.

Progress
40/100