previous | index | next

Using Precedence Rules

Consider the expression
     3 + 2 * 4 − 40 / 5
It should be evaluated as though it were parenthesized as:
     3 + (2 * 4) − (40 / 5)
Needed: A method for evaluating expressions according to precedence rules.

previous | index | next