x=99,y=100;
y=(x*y)/(x=y);
print x and y
Answers
Answered by
0
If we restrict the code only to these values, the final out put will be
"100 and 99"
Both the values of the x and y will get exchanged in the end.
First line is simple. (x is 99 and y is 100)
In second line,
(x *y) executes first and value will be 9900.
x =y statement next, and here x gets value of y that is, 100
now y gets 9900/100. That is 99
In third line that is while printing values it prints
100 and 99
as output.
Similar questions