predict the output:
#includestdio.h
int main()
{
int a=44,b=69,c,temp;
float p=4.6,q=7.8;
double m=65.7,n=59.6;
long long int x=50,y=90;
printf("a=%d and b=%d before swapping:\n",a,b);
temp=a;
a=b;
b=temp;
printf("a=%d and b=%d after swapping\n",a,b);
printf("\np=%f and q=%f before swapping:\n",p,q);
p = p + q;
q = p-q;
p = p-q;
printf("p=%f and q=%f after swapping\n",p,q);
printf("\nm=%lf and n=%lf before swapping:\n",m,n);
m=m*n;
n=m/n;
m=m/n;
printf("m=%lf and n=%lf after swapping\n",m,n);
printf("\nx=%d and y=%d before swapping:\n",x,y);
x=x^y;
y=x^y;
x=x^y;
printf("x=%d and y=%d after swapping\n",x,y);
return 0;
}


Posted on by