#include iostreamusing namespace std;int main () {int*ptr = NULL;cout The value of ptr is ptr ;
编程学习网为您整理以下代码实例,主要实现:C++ NULL指针,希望可以帮到各位朋友。
#include <iostream>
using namespace std;
int main () {
int *ptr = NulL;
cout << "The value of ptr is " << ptr ;
return 0;
}