+ 1
In memory leak the previous data will take place permanently or till our program is running?
Memory leak in c
2 Respuestas
+ 2
Only while the program is running. It is automatically freed by the operating system when program is closed.
0
Suppose we are using malloc function inside a while loop. We are allocating memory and not freeing it .while loop ittirating this process again and again. So the previous allocated memory which we didn't freed will take place permanently or till program is running?