← Quiz: Dynamic Memory: all 10 questions
Quiz: Dynamic Memory · Question 2 of 10
What is a memory leak?
What is a memory leak?
- A.Reading uninitialised memory
- B.Allocated memory that is never freed
- C.Freeing memory twice
- D.Writing to a NULL pointer
Answer & explanation
Correct answer: Allocated memory that is never freed
The memory stays reserved until the program ends.
Can you get the rest right without peeking?
Take the timed Quiz: Dynamic Memory quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →