Next: Logical operators Up: Decisions Previous: do-while loop

Relational operators

You can use the following relational operators:

The first four have equal precedence; the last two have equal but lower precedence. All are lower than arithmetic operators, so

   x < limit - 1

means

   x < (limit - 1)

as you might expect.



Next: Logical operators Up: Decisions Previous: do-while loop


maspjw@
Tue Sep 27 15:29:34 BST 1994