#include #include using std::cout; using namespace std; int main() { while (1) { int *x = new int[1000]; cout <<"Creating 4KB on heap.."; int temp; cin >>temp; //some delay delete [] x; } }