View Single Post
TechCake
11Jan2008,10:17  
asadullah.ansari's Avatar
You all are correct.
One main Difference is that Extra memory is taken by Pointer( Size depends on machine architecture i.e. 32-bit machine will be 32 bit size of pointer) But in case of reference is Only Alias for that object.

Some book written that reference is just like a constant pointer. But it's not correct. Just reference 's behabiour is like constant pointer.