Relational Operators
A relational operator is used to make comparison among two values. All these operators are binary and needs two operands. There are the following relational operators :
== equal to
!= not equal to
> greater than
>= greater than or equal to
< less than
<= less than or equal to
e.g.
number < 6
ch != 'a'
total == 1000
Note that no space is given among the symbols. All these operators have equal precedence amongst themselves and a lower precedence than the arithmetic operators.