我试过释放内存而不使用free()如下
free()
int *ptr = malloc(20); realloc(ptr, 0);
它会起作用吗?
c free realloc
c ×1
free ×1
realloc ×1