Example of evaluation statements are x = a * b – c ; y = b / c * a; z = a – b / c + d;
High priority ===> * / % Low priority ===> + -
First parenthesized sub expression left to right are evaluated.
If parenthesis are nested, the evaluation begins with the innermost sub expression.
The precedence rule is applied in determining the order of application of operators in evaluating sub expressions.
The associability rule is applied when two or more operators of the same precedence level appear in the sub expression.
Arithmetic expressions are evaluated from left to right using the rules of precedence.
When Parenthesis are used, the expressions within parenthesis assume highest priority.