Reference to a pointer

int *a;
what is &a? why does it exist?
&a is used for this declaration: int a; where you declare a value. &a returns the address of the value.
oh that makes sense. thank you
oh and congrats on that facebook thing. very impressive
No problem, and thanks. Gotta find some to entertain myself.
Unless you mean
int& a;
which is a reference to int.
int*&a declares a reference to a pointer

If a is a pointer ( int *a; ) &a will return the adress of the pointer ( which is of type int** )
Topic archived. No new replies allowed.