< Less than operator
exp1 < exp2 Test for exp1 less than exp2
exp1, exp2 any expression of type int, float, char, enum, or
related types
< is a relational operator, yielding a value of 1 (TRUE) if exp1 is
less than exp2; or 0 (FALSE) if exp1 is not less than exp2.
For values of types int and float, ordering is well defined. For type
char, it is based on the underlying ASCII code. For enum types, it is
based on the underlying int value. Type conversion is performed as
necessary before comparing the expressions, using the usual
arithmetic conversions. Here are two examples:
if (number < guess)
...
do {
...
} while (tries < 10);
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster