Example of Relational Operator in C

Relational Operator
In real life, Our decisions normally depends upon results of comparing two quantities.
In C these comparisons can be done with the help of relational operators.

   like a<b or 10<20  
here less than <  is relational operator, result of  any relational expression will always zero(true) or one(false)

For example  10>5 is true, while 10>20 is false

 C Supports six types of relational operators.


Example of Relational Operator in C
Some examples of simple relational expressions and their values

Example of Relational Operator
Example of Relational Operator in C









Reactions: