void f(int x){ p = &x; }
int* p = new int; *p = 1; int* q = p; int* r = p; *q = *q + 1; *r = *r + 1; cout << *p; 3