Seth Woolley's Man Viewer

operator(7) - C operator, C operator - C operator precedence and order of evaluation - man 7 operator

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

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

NAME
     C operator -- C operator precedence and order of evaluation

DESCRIPTION
     This manual page lists C operators and their precedence in(1,8) evaluation.

           Operator                             Associativity
           --------                             -------------
           () [] -> .                           left to right
           ! ~ ++ -- - (type) * & sizeof        right to left
           * / %                                left to right
           + -                                  left to right
           << >>                                left to right
           < <= > >=                            left to right
           == !=                                left to right
           &                                    left to right
           ^                                    left to right
           |                                    left to right
           &&                                   left to right
           ||                                   left to right
           ?:                                   right to left
           = += -= *= /= %= <<= >>= &= ^= |=    right to left
           ,                                    left to right

BSD                             August 24, 2003                            BSD

References for this manual (incoming links)