int i, *p; p = &i; *p = 42;
This sample code is the same as i = 42; because p becomes a pointer to variable i. When we store 42 into the integer pointed to by p, we are essentally storing into variable i.
i = 42;
p
i