I don't know how to approach this problem, please help!
The following code is in main:
Question:
Write a function called intpswap that swaps what xp and yp point at,
and thus printf prints "*xp = 4, *yp =3".
The following code is in main:
Code:
main() { int x=1,y=2; int *xp,*yp; . . . xp = &x; yp = &y; intpswap(<arg1>,<arg2>); x=3;y=4; printf("*xp = %d, *yp = %d\n",*xp,*yp); }
Write a function called intpswap that swaps what xp and yp point at,
and thus printf prints "*xp = 4, *yp =3".
Comment