1OPERATOR(7)          BSD Miscellaneous Information Manual          OPERATOR(7)
2

NAME

4     C operator — C operator precedence and order of evaluation
5

DESCRIPTION

7     This manual page lists C operators and their precedence in evaluation.
8
9           Operator                             Associativity
10           --------                             -------------
11           () [] -> .                           left to right
12           ! ~ ++ -- + - (type) * & sizeof      right to left
13           * / %                                left to right
14           + -                                  left to right
15           << >>                                left to right
16           < <= > >=                            left to right
17           == !=                                left to right
18           &                                    left to right
19           ^                                    left to right
20           |                                    left to right
21           &&                                   left to right
22           ||                                   left to right
23           ?:                                   right to left
24           = += -= *= /= %= <<= >>= &= ^= |=    right to left
25           ,                                    left to right
26
27BSD                             August 24, 2003                            BSD
Impressum