1.空指针是指向NULL的指针,初始化使用,防止被误调用。
#includeusing namespace std; int main() { int * p = NULL; cout << p < 指向了0号内存地址,被系统占用了,不能被调用。
#includeusing namespace std; int main() { int * p = NULL; *p = 100; cout << *p < 二、野指针 随机指向的地址
#includeusing namespace std; int main() { int * p = (int *)0x11abc0; *p = 100; cout << *p <



