Sunday, September 1, 2013

Operator Precedence Groups

Operator category                                            Operators                                                  Associativity
unary operators                                           - ++ ! sizeof (type)                                           Right to Left
arithmetic  multiply, divide and remainder               * I %                                                      Left to Right
arithmetic add and subtract                                  + -                                                           Left to Right
relational operators                                           < <= > >=                                                  Left to Right
equality operators                                           !=                                                                 Left to Right
logical and                                                       &&                                                             Left to Right
logical or                                                            ||                                                               Left to Right
conditional operator                                      ? :                                                                   Right to Left
assignment operators                                 = += -= *= /= %=                                             Right to Left

No comments:

Post a Comment