CodePudding user response:
On the computer to run down the baiCodePudding user response:
The value of x is 1, the value of y is 0, the final output is zeroCodePudding user response:
In environmental input code compiler to run, such as the x, y all print once, and then learn the running status ~ according to the resultsCodePudding user response:
You can throw the garbage on the book,Printf (" % d \ n ", d * y);
This fundamental, format for "% d", parameter is double, the result is uncertain,
CodePudding user response:
Give you a detailed answer:Int x=1.2; Because it is an int type, so I is equal to 1,
(x + 3.8)/5.0; The symbols/is take, if y is of type double, is equal to 0.96,
Only blame is type int y, so can only be equal to 0.
And when you finally output, and % d, this was strangled, the final result can only be 0
CodePudding user response: