#include #include using namespace std; void function1() { int array1[100000] ; //printf( "Inside Function 1.\n" ) ; cout << "Inside Function 1." << endl ; cout.flush(); //sleep(1); function1() ; } int main() { int* ptr ; while( true ) { ptr = new int[ 1000000 ] ; cout << "Inside while loop." << endl ; cout.flush(); } return 0 ; }