So I am having a discussion with a friend about reference and pointers.
What we got talking about is \"you can take an address of a pointer but you cant take an addr
You can think of references as aliases for objects. So, in your example, &xRef declares xRef which is another name for x. Hence you're printing twice the adress of the same object.
&xRef
xRef
x