Answers for "what happens if we don't free dynamically allocated memory"

0

what happens if we don't free dynamically allocated memory

But the memory allocation using malloc() is not de-allocated on its own. 
So, “free()” method is used to de-allocate the memory. But the free() 
method is not compulsory to use. If free() is not used in a program the
memory allocated using malloc() will be de-allocated after completion 
of the execution of the program
Posted by: Guest on March-28-2021

Code answers related to "what happens if we don't free dynamically allocated memory"

Browse Popular Code Answers by Language