再换
#include<stdio.h>
#include<malloc.h>
int main()
{
int *p;
p=(int *)malloc(16);
*p=4;
free(p);
printf("%d\n",*p);
return 0;
}
#include<stdio.h>
#include<malloc.h>
int main()
{
int *p;
p=(int *)malloc(16);
*p=4;
free(p);
printf("%d\n",*p);
return 0;
}

倚天照海花无数,流水高山心自知。