求助!为什么free()函数后面定义的指针变量会出错
#include<stdio.h>#include<stdlib.h>
#include<string.h>
int main()
{
char* p=(char*)malloc(10);
free(p);
int* k=NULL;
return 0;
}
//编译不能通过
2015-11-07 15:01
2015-11-07 15:07
2015-11-07 15:09
2015-11-07 15:10

2015-11-07 15:11
2015-11-07 15:12
2015-11-07 15:13
[此贴子已经被作者于2015-11-7 15:23编辑过]

2015-11-07 15:19