#include<stdio.h>
void swap(int*a,int*b);
{int temp;
temp=a
*a=*b
*b=temp
}
int main()
{int num1,int num2;
printf("Enter thr frist number:"); scanf("%d",&num1);
printf("Enter thr second number:"); scanf("%d",&num2);
printf("Before swapping :num1=%d,num2=\n",num1
,num2
); swap(&num1,&num2)
printf("After swapping :num1=%d,num2=\n",num1
,num2
""); return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4Kdm9pZCBzd2FwKGludCphLGludCpiKTsKe2ludCB0ZW1wOwp0ZW1wPWEKKmE9KmIKKmI9dGVtcAp9CmludCBtYWluKCkgCntpbnQgbnVtMSxpbnQgbnVtMjsKcHJpbnRmKCJFbnRlciB0aHIgZnJpc3QgbnVtYmVyOiIpOwpzY2FuZigiJWQiLCZudW0xKTsKcHJpbnRmKCJFbnRlciB0aHIgc2Vjb25kIG51bWJlcjoiKTsKc2NhbmYoIiVkIiwmbnVtMik7CnByaW50ZigiQmVmb3JlIHN3YXBwaW5nIDpudW0xPSVkLG51bTI9XG4iLG51bTEsbnVtMik7CnN3YXAoJm51bTEsJm51bTIpCnByaW50ZigiQWZ0ZXIgc3dhcHBpbmcgOm51bTE9JWQsbnVtMj1cbiIsbnVtMSxudW0yIiIpOwpyZXR1cm4gMDsKfQ==
#include<stdio.h>
void swap(int*a,int*b);
{int temp;
temp=a
*a=*b
*b=temp
}
int main()
{int num1,int num2;
printf("Enter thr frist number:");
scanf("%d",&num1);
printf("Enter thr second number:");
scanf("%d",&num2);
printf("Before swapping :num1=%d,num2=\n",num1,num2);
swap(&num1,&num2)
printf("After swapping :num1=%d,num2=\n",num1,num2"");
return 0;
}