alexsmth114's Avatar, Join Date: Mar 2011
Go4Expert Member
Really nice comparison, useful post, keep them coming!!..
msdnguide's Avatar, Join Date: May 2011
Go4Expert Member
Reference is just an alias. Like a different name to same variable where as Pointer is the actual memory location where the variable is stored
sachin.magdum's Avatar, Join Date: Jan 2012
Newbie Member
Little curious about fourth difference. Can we really not create reference to reference?

int obj;
int & ref = obj;
int & ref_2 = ref; // although equivalent to int & ref_2 = obj;
// I agree that we do not have some thing like int & & ref_to_ref = ref;

1. There exists void pointers, but no void references.
2. Pointer is a variable, that has its own address. References are alias to some other variable, references do not have their own address.
sura's Avatar