Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. void swap(int *x, *y) {
  2. if (x == y) // Check if two addresses are the same
  3. return x;
  4. *x = *x + *y;
  5. *y = *x - *y;
  6. *x = *x - *y;
  7. }
  8.  
  9. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement