/* A demo program to show dynamic variable */ #include using namespace std; void Pause() { cout <<"Press any key to continue:"; char key; cin >> key; } int main() { int *p=NULL; int *q; cout <<"--------------------------------------------------------------- \n"; cout <<" Dynamically allocate a new int variable, save its address in p\n"; cout <<"--------------------------------------------------------------- \n"; p = new int; //assign the address of variable a to p cout <<"Pointer p=" << p << ", pointing to int with value" << *p << endl; Pause(); cout <