The result of the expression (11 + 3 * 8) / 4% 3 is ()?

it"s not 2 at all

.
Mar.22,2021

= 2.75


(11 + 24) / 4% 3
35 br 4% 3
8.75% 3
2.75
Thank you.


2.75Brother


if it is a strongly typed language, such as java, c, cPP, etc., then the result is 2, because each value in the formula is divided by int, and the result is int, without decimal point. If it is a weakly typed language such as js, then the result is not 2, because all the values in the formula are number, division signs, and the result is number, with a decimal point.


Brother, do you still want to ask, good water?

Menu