recently, I've just learned that there are some cases where the program C++ does not end/exit at the "main" function "return" keyword. From my understanding, this raises the task to do manual clean up of objects and data in the program... of course to have a proper clean up
therefore, in case I have to write a destructor/cleaning up function for a program to replace for the default cleaning up, what should be considered? e.g. all object's destructors? dynamic memory variables? ... any else?