小编amm*_*059的帖子

c中的空闲内存,不使用free()函数

我试过释放内存而不使用free()如下

int *ptr = malloc(20);
realloc(ptr, 0);
Run Code Online (Sandbox Code Playgroud)

它会起作用吗?

c free realloc

2
推荐指数
1
解决办法
588
查看次数

标签 统计

c ×1

free ×1

realloc ×1