Quantcast
Viewing latest article 4
Browse Latest Browse All 4

Pointers and dynamic memory

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 latest article 4
Browse Latest Browse All 4

Trending Articles