Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-29-2005, 10:38 PM #1
- Join Date
- Dec 2004
- Thanked 0 Times in 0 Posts
references in C++ - it's location
I've read that a reference is an ALIAS and not a pointer. ie it represents
another variable name for the same object.
Using the ' &Reference' returns the address of the target ,not the
reference. So...how Do I find the address of the reference?
Is it a hidden compiler variable which does not get put into the assembly?
My guess is that the compiler treats the reference and it's target as the same variable and puts it in the exact same position in the final exe.
If thats the case then what happens when the reference is
passed to a function ?
Thanks for any insight.