Wednesday, May 14, 2008

Relational operators

Relational operators

Relational operators are used to compare two operands and to check whether they are equal, unequal, greater than and lesser than other.

There are 6 relational operators:

Operator Meaning
< Less than
> Greater than
<= Less than equal to
>= Greater than equal to
== Equal to
!= Not equal to


The value of the relational operator is either one or zero. If the relation is true, result is 1 otherwise it is 0.

0 comments:

Copyright

Copyright © 2008 C Tutorial, All rights are reserved