Quote Originally Posted by pyroknife View Post
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?
Yes, I see what you guys are talking about. Isn't that what I said in the above post (quote)? Or am I wrong? I thought what I wrote above is what you guys are saying.