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
12       () [] -> .                          left to right
13       ! ~ ++ -- + - (type) * & sizeof     right to left
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

COLOPHON

29       This  page  is  part of release 4.15 of the Linux man-pages project.  A
30       description of the project, information about reporting bugs,  and  the
31       latest     version     of     this    page,    can    be    found    at
32       https://www.kernel.org/doc/man-pages/.
33
34
35
36Linux                             2011-09-09                       OPERATOR(7)
Impressum