temp2
, temp1
are pointers to some struct x:
struct FunkyStruct x;
struct FunkyStruct *temp1 = &x, *temp2 = &x;
Now, after execution of following lines:
temp2=temp1;
temp1=temp1->nxt;
...Will temp2
and temp1
still point to the same memory location? If not, please explain why they would be different.