Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void Swap(int *firstVal, int *secondVal)
  2. {
  3. int tempVal = *firstVal;
  4. *firstVal = *secondVal;
  5. *secondVal = tempVal;
  6. }
  7.  
  8. int fv = 6, sv = 10;
  9. Swap(&fv, &sv);
  10. printf(“Values: (%d, %d)\n”, fv, sv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement