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