1.

What are relational operators? Explain any four relation operators in C++.

Answer»

The operators which perform operation of relation between two operands called relational operators.

The > (greater than) operator: if (10 > 5)?

Output: True. If ( 5 > 10)?

Output: False 

The < (lesser than) operator: if (15 < 25)?

Output: True.

If ( 56 < 26)?

Output: False 

The >= (greater than or equal to) :

if (10 >= 10)?

Output: True.

If (5 >= 10)?

Output: False

The <= (Lesser than or equal to):

if (6 <= 10)?

Output: True.

If ( 16 <= 10)?

Output: False



Discussion

No Comment Found

Related InterviewSolutions