Your Ad Here

Sunday, September 14, 2008

Precedence Summary

Table 2-8 lists the precedence of all operators defined by C. Note that all operators, except the unary
operators and ?, associate from left to right. The unary operators (*, &, –) and ? associate from right
to left.
Expressions
Operators, constants, functions, and variables are the constituents of expressions. An expression in C
is any valid combination of these elements. Because most expressions tend to follow the general
rules of algebra, they are often taken for granted. However, a few aspects of expressions relate
specifically to C.

No comments: