Next Generation Emulation banner

Difference between reference and pointers.

1343 Views 6 Replies 5 Participants Last post by  Syed Fawad
I tried to search the web but I am kinda having difficulty in finding some "basic" difference between these two in layman terms.


int A;
int *pA;
pA = &A;


int A;
int &rA = A;

So what?

A is the name of the address of 2 bytes reserved in memory for integer type.
pA is the pointer which contains the address of A.
So what would rA be?
1 - 1 of 7 Posts
Syed Fawad said:
What'll happen? vbmenu_register("postmenu_836894", true);
Sorry unrelated, but what did you put at the end of your post to make that vBulletin bug happen?
1 - 1 of 7 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.