reference to pointers.

Oct 1, 2010 at 4:50pm
What is reference to pointers? And where/when do you use them?

1
2
3
int x =10;
int *p1 = &x;
int *&r1 = p1;
Oct 1, 2010 at 5:01pm
Oct 1, 2010 at 5:03pm
well i read it before i posted..there is no explanation of ref-to-pointer.
Oct 1, 2010 at 5:05pm
There is no conceptual difference between a reference to a pointer and a reference to any other variable.
Oct 1, 2010 at 6:30pm
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.