August 1997
Beginner
454 pages
9h 32m
English
Operators listed in Table C-1 near the top are evaluated before those below.
Precedence | Operator | ||||
1. | ( ) | [ ] | -> | . | |
2. | ! | ~ | ++ | — | (type) |
- (unary) | * (dereference) | ||||
& (address of) | sizeof | ||||
3. | * (multiply) | / | % | ||
4. | + | - | |||
5. | << | >> | |||
6. | < | <= | > | >= | |
7. | == | != | |||
8. | & (bitwise and) | ||||
9. | ^ | ||||
10. | | | ||||
11. | && | ||||
12. | || | ||||
13. | ?: | ||||
14. | = | += | -= | etc. | |
15. | , | ||||
Precedence | Operator | ||
1. | * (multiply) | / | % |
2. | + | - | |
Put parentheses around everything else.
Read now
Unlock full access