Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
88 n Chapter 6 Operator Precedence You probably remember that 2 + 6 * 9 is 56 and not 72, because multiplica- tion precedes addition. That is exactly the meaning of operator precedence. It is not necessary to remember the precedence rules because parentheses can be used to force evaluation in the desired order. The expressions are evaluated according to the precedence rules. Operators at the same level are evaluated from left to right. The following table will help you when you want to define complex expressions. Table 6-13. Operator precedence Level 1 2 3 4 5 6 7 Operators () [] . ! ~ ++ * / % + << >> >>> < <= > >= == != Notes call, member (including typeof and void) negation, increment multiply/divide addition/subtraction bitwise shift relational equality