Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
#include <iostream> using std::cout; using std::endl; int main() { char *p; p = new char[100000]; if (p) cout << "Allocated 100,000 bytes" << endl; else cout << "Allocation failed" << endl; return 0; } /* run: Allocated 100,000 bytes */