Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void swap(int *x, *y) {
- if (x == y) // Check if two addresses are the same
- return x;
- *x = *x + *y;
- *y = *x - *y;
- *x = *x - *y;
- }
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement