📌  相关文章
📜  如果我们不释放动态分配的内存会发生什么 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:49.593000             🧑  作者: Mango

代码示例1
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