Vidyalelo
C++ Programming · Q22

Pointers and References in C++

Programming · C++ Programming · question 22

Q22

What is a memory leak in C++?

A.
Failure to allocate memory when needed
B.
Allowing memory to be accessed by unauthorized users
C.
Accessing an invalid memory location
D.
Failure to deallocate memory after it's no longer needed
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board