1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
8
Operator Precedence & Associativity
nIn the absence of parentheses, expressions containing multiple operators evaluated by the priority, or precedence, of the operators
n(high->low)
nUnary –
n* / % left to right
n+ - left to right
nExample
n8 + 5 * 7 % 2 * 4
n  = 8 + 35 % 2 * 4
n  = 8 + 1 * 4 = 8 + 4 = 12
n