I read tutorials about int*
and int&
. first, I type
int a = 3
and then,
int* x = &a;
means x
is a pointer to the address of a
which means the VALUE of x
is something that POINTS to the address of a
. Correct?
but if I do
int& x = a;
that means the ADDRESS of x
is pointing to the VALUE of a
right? or does it mean something different? what EXACLTY does it mean?