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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b305c2-2b255.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b305c2-2b255.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?