#include int main() { const int n = 0x7FFFFFFF; for (;;) { CHAR* memory = new(std::nothrow) char[n]; if ( 0 == memory ) { std::cerr << "Operator new returns a NULL"; } else { memory[0] = 'A'; memory[n-1] = 'B'; std::cout << "A-OK"; } } return 0; }