+ 2
In / and % which of the two is higher in precedence because they usually get interchanged
5 Answers
+ 4
Seb TheS Yes u were right .
* , / , % has same precedence and just gets evaluated from left to right..đ
+ 2
Eskayđđ you should say which language you mean. In Python the are evaluated from left to right by definition. Right to left (or defining different precedence levels) would change the result obviously, but that's not how it works
+ 2
Alphin K Sajan
If / has higher precedence than %, then 10 % 8 / 2 should evaluate to 10 % 4.0 causing result 2.0.
But 10 % 8 / 2 gives result 1.0.
+ 1
What about solving the expression from right to left, won't it change