Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C - <b>precedence</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Precedence

    Operators--indeed, all expressions--have an inherent precedence; that
    is, in the absence of explicit grouping (through parentheses), the
    order of evaluation of an expression depends upon the precedence of
    the elements involved.  Operators of higher precedence are evaluated
    before operators of lower precedence.

    In the table below, elements on the same line have equal precedence.
    The first two lines contain unary operators; that is, they take only
    one argument.  The remaining lines contain binary operators--they
    take two arguments.  Note that several symbols have both unary and
    binary definitions.


   --------------------------- Precedence -------------------------------
   Operator                                                 Associativity
   ----------------------------------------------------------------------
   identifier   constant   literal   ()   []   ->   .       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
   ----------------------------------------------------------------------

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson