1OPERATOR(7)                Linux Programmer's Manual               OPERATOR(7)
2
3
4

NAME

6       operator - C operator precedence and order of evaluation
7

DESCRIPTION

9       This manual page lists C operators and their precedence in evaluation.
10
11       Operator                            Associativity   Notes
12       () [] -> . ++ --                    left to right   [1]
13       ! ~ ++ -- + - (type) * & sizeof     right to left   [2]
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       ||                                  left to right
24       ?:                                  right to left
25       = += -= *= /= %= <<= >>= &= ^= |=   right to left
26       ,                                   left to right
27
28       The following notes provide further information to the above table:
29
30       [1] The  ++  and  -- operators at this precedence level are the postfix
31           flavors of the operators.
32       [2] The ++ and -- operators at this precedence  level  are  the  prefix
33           flavors of the operators.
34

COLOPHON

36       This  page  is  part of release 5.12 of the Linux man-pages project.  A
37       description of the project, information about reporting bugs,  and  the
38       latest     version     of     this    page,    can    be    found    at
39       https://www.kernel.org/doc/man-pages/.
40
41
42
43Linux                             2020-08-13                       OPERATOR(7)
Impressum