A memory leak in a C program occurs when ________.
Answer: A
Correct answer: allocated memory is never released and its pointer is lost
A leak is memory that remains allocated while the program has no pointer left with which to free it. The block stays reserved for the life of the process, and in a long-running program repeated leaks exhaust the heap.
Please log in or register to report this question.