reference to pointers.

What is reference to pointers? And where/when do you use them?

1
2
3
int x =10;
int *p1 = &x;
int *&r1 = p1;
well i read it before i posted..there is no explanation of ref-to-pointer.
There is no conceptual difference between a reference to a pointer and a reference to any other variable.
if you need to modify the pointer, not just the data pointed to by it, pass a reference to a pointer
Topic archived. No new replies allowed.