Originally Posted by
pyroknife
Ugh I'm confused. So this is what i think happens in the 1st call:
temp = *p1
*p1 = *p2;
*p2 = temp;
the address of &i1 is p1 and analogous terms for &i2.
So the second call looks like:
temp = *p2
*p2 = *p1;
*p1 = temp;
How's that?