+ 4
Do we need to del all variables before a big program finishes
Is there a great need to delete all variables when you finish a big project? If you do not delete the variables, where will they be after the program runs and finishes? Is there a way to clear all variables at the same time?
3 ответов
+ 1
Once the program finishes, the memory(RAM) reserved for it is set free, so there is no actual need to manually do it.
+ 1
no
0
Nope, the most variables would be handled over the stack. And it is clean, when your program ends. But if you are going to make it very special (pointer, stack manipulating, mem alloc etc...) under C as example, you have dirty ways to manipulate everything. Then you have to clean up the room bevore leaving.