int * x;
int v = 7;
Given this code, what is the difference between
1. x = &v
, and
2. *x = v
?
I understand that in both cases, *x
contains 7
but does x
contain memory location of v
in both cases? If not, what does x
contain in cases 1 and 2, and is this the only significant difference between the two?