1operator(7) Miscellaneous Information Manual operator(7)
2
3
4
6 operator - C operator precedence and order of evaluation
7
9 This manual page lists C operators and their precedence in evaluation.
10
11 Operator Associativity Notes
12 [] () . -> ++ -- left to right [1]
13 ++ -- & * + - ~ ! sizeof right to left [2]
14 (type) right to left
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 && left to right
24 || left to right
25 ?: right to left
26 = *= /= %= += -= <<= >>= &= ^= |= right to left
27 , left to right
28
29 The following notes provide further information to the above table:
30
31 [1] The ++ and -- operators at this precedence level are the postfix
32 flavors of the operators.
33 [2] The ++ and -- operators at this precedence level are the prefix
34 flavors of the operators.
35
36
37
38Linux man-pages 6.04 2023-02-05 operator(7)