#include <iostream> using namespace std; int main() { //空指针用于给指针变量进行初始化 int * p = NULL; //NULL代表0 //空指针是不能进行访问的 //0~255 之间的内存编号是系统占用的,因此不能访问 *p = 100; system("pause"); return 0; }