#include using namespace std; int main() { int* ptr = new(nothrow) int[9982381213]; // too big? if (ptr != NULL) { cout << "Created memory." << endl; delete[] ptr; } else cout << "Failure to allocate memory." << endl; return 0; }