answersLogoWhite

0

Comparative operators are used to compare the logical value of one object with another and thus establish the rank (ordering) of those objects.

There are six comparative operators in total:

p<q : evaluates true when p is less than q

p>q : evaluates true when p is greater than q

p<=q : evaluates true when p is less than or equal to q

p>=q : evaluates true when p is greater than or equal to q

p!=q : evaluates true when p is not equal to q

p==q : evaluates true when p is equal to q

User Avatar

Wiki User

8y ago

What else can I help you with?