问题 This question already has an answer here: what's the point in malloc(0)? 17 answers What does malloc(0) returns? Would the answer be same for realloc(malloc(0),0) ? #include<stdio.h> #include<malloc.h> int main() { printf(\"%p\\n\", malloc(0)); printf(\"%p\\n\", realloc(malloc(0), 0)); return 0; } Output from linux gcc: manav@manav-workstation:~$ gcc -Wall mal.c manav@manav-workstation:~$ ./a.out 0x9363008 (nil) manav@manav-workstation:~$ The output keep changing everytime for malloc(0) . Is