relational operatorsa relational operator is used


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.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: relational operatorsa relational operator is used
Reference No:- TGS0309239

Expected delivery within 24 Hours