1) Not sure if i understand this one. It could be that function f can be used to increment the address of a pointer. So to use f(...) give it an argument of type: int*
Expand|Select|Wrap|Line Numbers
- void f(int*& i) { i++; }
Expand|Select|Wrap|Line Numbers
- int x; //some int
- int& r = &x; //ref to int
- int* p = &x; //pointer to int
- int*&* rp = &r; //error: no pointer to ref <---?
- int*&* pr = p; //ok: ref to pointer <--- ?