Monday, January 5, 2009

Precedence of operator In C programming Language

Operator Precedence


The following tables show the order in which operators are evaluated. Please note the following.
  • The order in which the operands are evaluated is not specified in the ANSII standard.
  • For readability you should not rely on these rules! Put everything in brackets so you intension is clear to the compiler and other programmers.

Summary precedence table.

All operators on the same line have the same precedence. The first line has the highest precedence.

() [] -> .
! ~ ++ -- + - * & sizeof
* / %
+ -
<< >>
< <= >= >
== !=
&
^
|
&&
||
?:
= += -= *= /= %= &= ^= |= <<= >>=
,

For More read................

No comments:

Blog List