#include <iostream> using namespace std; int main() { //野指针 //在程序中避免出现野指针 int* p = (int*)0x1100; cout << *p << endl;//报错 system("pause"); return 0; }