Operator Precedence
Multiplication, division, and remainder have a higher precedence than addition and subtraction
Both groups associate left to right
Expression:
Order of evaluation:
Result:
5 + 12 / 5 - 10 % 3
6
4
3
2
1
Previous slide
Next slide
Back to first slide
View graphic version