// File: new1.C // // Closer look at the new operator #include #include #include main() { int n ; cout << "n = ? " ; cin >> n ; int *ptr = new int[n] ; if (ptr == NULL) { cerr << "Sometimes new returns NULL" << endl ; } }