Precedence Rule
Precedence rule for arithmetic operators, from highest to lowest:
parentheses
Unary operators ++, --, +, -, (type)
Binary operators *, /, %
Binary operators +, -
Example: 3 * (12 - 7)
Previous slide
Next slide
Back to first slide
View graphic version