The title explains it well. I wish to know which variables I need to delete when my program closes. I assume you don't have to use the delete keyword on every variable that you initialize.
Thanks in advance.
If the program finishes and there is still memory that wasn't deleted, it won't matter. The memory gets allocated by a thing called the "heap", which is a part of the program (something the compiler generates for you). This heap is like a manager of memory, it allows you to … Read More