#include<stdio.h>
void swap (int *x,int *y)
{
int temp;
temp=*x;
*x=*y;
*y=temp;
printf("new value of x=%d\n",*x);
printf("new value of y=%d\n",*y);
}
int main()
{
int a=10;
//printf ("enter a=");
//scanf("%d",&a);
int b=20;
//printf ("enter b=");
//scanf("%d",&b);
swap(&a,&b);
printf("value of a=%d\n",a);
printf("value of b=%d",b);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KCnZvaWQgc3dhcCAoaW50ICp4LGludCAqeSkKewogICAgaW50IHRlbXA7CiAgICB0ZW1wPSp4OwogICAgKng9Knk7CiAgICAqeT10ZW1wOwogICAgcHJpbnRmKCJuZXcgdmFsdWUgb2YgeD0lZFxuIiwqeCk7CiAgICBwcmludGYoIm5ldyB2YWx1ZSBvZiB5PSVkXG4iLCp5KTsKCgoKfQoKCgogIGludCBtYWluKCkKewogICAgaW50IGE9MTA7CiAgICAvL3ByaW50ZiAoImVudGVyIGE9Iik7CiAgICAvL3NjYW5mKCIlZCIsJmEpOwogICAgaW50IGI9MjA7CiAgICAvL3ByaW50ZiAoImVudGVyIGI9Iik7CiAgICAvL3NjYW5mKCIlZCIsJmIpOwogICAgc3dhcCgmYSwmYik7CiAgICBwcmludGYoInZhbHVlIG9mIGE9JWRcbiIsYSk7CiAgICBwcmludGYoInZhbHVlIG9mIGI9JWQiLGIpOwoKCnJldHVybiAwOwp9Cgo=