#include <stdio.h>
int main()
{
char *p;
p = NULL;
printf("Location 0 contians %d\n", *p);
return 0;
}
运行结果:
在我的笔记本上,可以成功运行。输出为空,一般内存地址0不放任何内容。
在学院楼台式机,产生错误,说明该电脑禁止读取内存地址0。
mb646f19c83b73f 博主文章分类:C陷阱与缺陷部分源码
#include <stdio.h>
int main()
{
char *p;
p = NULL;
printf("Location 0 contians %d\n", *p);
return 0;
}
运行结果:
在我的笔记本上,可以成功运行。输出为空,一般内存地址0不放任何内容。
在学院楼台式机,产生错误,说明该电脑禁止读取内存地址0。
上一篇:单链表元素定位
下一篇:两个有序序列的中位数(25 分)
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M