Quantcast
Channel: Pointers and dynamic memory
Viewing all articles
Browse latest Browse all 4

Pointers and dynamic memory

0
0
If I have a function called Test() which does the following:

MyClass* pMyClass = new MyClass();

And it does not delete that allocated memory, is the memory freed when the program ends or does it remain allocated and until RAM is "purged", like reboot, shutdown, etc? How long does that allocation remain in memory?

Thanks, 

Patrick

 

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images