Probably explains why I cannot find it
For example though the C standard says that it closes all open files.
Is there anything that happens with new'ed objects? Or is this all
implementation defined.
Hiya Adrian,
It's all platform dependent.
A modern operating system with virtual memory management (like Linux
or Windows) will release memory (and many other types of resources)
when the process terminates. For the memory, it's pretty much just
throwing away the page tables and any backing store used when paging.
An older (or modern embedded!) operating system without VMM might not
do this, though. And of course, any other resources (like shared
memory segments or mutexes) might not be released cleanly, if at all.
So for portable code, always try to clean up the mess you make. If
it's a play project on your home PC, don't waste your time unless you
need to learn - do it a few times.
Doug