Tuesday, September 21, 2010

Operator Precedence in C.

Operator precedence plays a very important role while evaluating a expression and logical output predict in a program. Here i have listed the precendence of operator. So when a expression or logical condition is evaluated, the evaluation takes place in the order of precedence.



Operator Symbol
Name of the operator
!
Logical Not
*,/,%
Arithmetic and modulo
<,>,<=,>=
Relational
==,!=
Relational
&&,||
Logical AND and OR
=
Assignment

No comments:

Post a Comment