#include <stdio.h>
int main()
{
    char *p;
    p = NULL;
    printf("Location 0 contians %d\n", *p);
    return 0;
}

运行结果:

在我的笔记本上,可以成功运行。输出为空,一般内存地址0不放任何内容。

在学院楼台式机,产生错误,说明该电脑禁止读取内存地址0。