int * x; int v = 7;
Given this code, what is the difference between 1. x = &v , and 2. *x = v ? I understand that
x = &v
*x = v
x = &v modifies x. After the operation x will point to v.
*x = v modifies the object pointed by x. In the example, x doesn't point at anything because the pointer is uninitialised. As such, the behaviour is undefined.