原文:In dynamic memory allocation, after the program terminates and one forgets to deallocate the memory, will that memory stay allocated?
Been reading C++ books but I can t seem to find the answer. All I know is dynamic memory allocation such as when I make a function: void memoryleak(){ int * ptr = new int; } It allocates a memory ...