Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


C operator precedence

Author:black - Sun Aug 24 02:14:52 2003

   Table 4.11 lists all the C operators in order of decreasing
   precedence. Operators on the same line have the same precedence.

    Table 4.11. C operator precedence.

   Level Operators
   1 () [] -> .
   2 ! ~ ++ -- * (indirection) & (address-of) (type)
   sizeof + (unary) - (unary)
   3 * (multiplication) / %
   4 + -
   5 << >>
   6 < <= > >=
   7 == !=
   8 & (bitwise AND)
   9 ^
   10 |
   11 &&
   12 ||
   13 ?:
   14 = += -= *= /= %= &= ^= |= <<= >>=
   15 ,
   () is the function operator; [] is the array operator.
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk