P
PCHOME
Hi!
It it about C.
If I allocate 1M memorey and forget to free it in my program, I know
that part of memory will be unable for using later in my program.
1)Will the OS collect it for later use while my program terminates?
2)Or it will become unavailable even my program terminates?
If 2) is true, When will that 1M becomes available? After I reboot
my machine?
Thanks!
It it about C.
If I allocate 1M memorey and forget to free it in my program, I know
that part of memory will be unable for using later in my program.
1)Will the OS collect it for later use while my program terminates?
2)Or it will become unavailable even my program terminates?
If 2) is true, When will that 1M becomes available? After I reboot
my machine?
Thanks!