#include <stdio.h>
void swap(int *a, int *b) {
int w;
w=*a;
*a = *b;
*b = w;
}
void sort(int *x, int *y) {
if (*x < *y) {
swap(x, y);
}
}
int main() {
int x = 3;
int y = 6;
sort(&x, &y);
printf("x = %d, y = %d\n", x
, y
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICphLCBpbnQgKmIpIHsKICAgIGludCB3OwogICAgdz0qYTsKICAgICphID0gKmI7CiAgICAqYiA9IHc7Cn0KCnZvaWQgc29ydChpbnQgKngsIGludCAqeSkgewogICAgaWYgKCp4IDwgKnkpIHsKICAgICAgICBzd2FwKHgsIHkpOwogICAgfQp9CgppbnQgbWFpbigpIHsKICAgIGludCB4ID0gMzsKICAgIGludCB5ID0gNjsKICAgIHNvcnQoJngsICZ5KTsgCiAgICBwcmludGYoInggPSAlZCwgeSA9ICVkXG4iLCB4LCB5KTsKCiAgICByZXR1cm4gMDsKfQ==