When i declare a variable, it will be allocated in stack at a certain index of memory right?
But when i declare a reference variable it will point to the same index of the other one, so no new space have to be allocated in stack...
How does the c++ handle this situation?
i mean pratically, it have a table that contains the association between names and indexes?
The compiler do all the work?
I hope to be clear... If anybody have some manuals or stuff about that i'll be very pleased!
Thanks to all and sorry if i wrote in a bad english!