C++
Programming and Technical
When can you tell that a memory leak will occur?
Read Solution (Total 1)
-
- int *p = new int;
int *q = new int;
p=q; //creates a memory leak as the original address allocated to *p is not free
- 11 years agoHelpfull: Yes(0) No(0)
C++ Other Question