Can I exchange two int pointers ?
Can I exchange two int pointers ?
Yes, Use a third int pointer to exchange the variables.
int *p, *n, * x;
int a,b;
p=&a; n=&b;
x=p; p=n; n=x;
Regards,
Anoop :)
If its useful, dont forget to [COLOR="Red"]THANK[/COLOR] me :cool: