>>28
void swap(int *x, int *y) {
int _x = *x;
*x = *y;
*y = _x;
}
これでおk