#include<stdio.h>
void swap(int *a,int *b);
int main(void)
{
int a=3,b=5;
swap(&a,&b);
return 0;
}
void swap(int *a,int *b)
{
int w;
w=*a;
*a=*b;
*b=w;
}
I2luY2x1ZGU8c3RkaW8uaD4KCnZvaWQgc3dhcChpbnQgKmEsaW50ICpiKTsKCmludCBtYWluKHZvaWQpCnsKCWludCBhPTMsYj01OwoJCglzd2FwKCZhLCZiKTsKCQoJcHJpbnRmKCIlZCAlZCIsYSxiKTsKCQoJcmV0dXJuIDA7Cn0Kdm9pZCBzd2FwKGludCAqYSxpbnQgKmIpCnsKCWludCB3OwoJCgl3PSphOwoJKmE9KmI7CgkqYj13Owp9