C++ Syntax: Compare < <= >= >

Description

The compare operators compare two values and produce the value 1 (true) if the relationship is satisfied, otherwise 0 (false) is returned. For example:-
if ( a < b ) print "a < b\n";
They are analogous to the FORTRAN .LT. .LE. .GE. and .GT. logical operators.

See operator precedence

Other Uses for < <= >= >

None.

Usage Notes

None.
Go Back to the The C++ Crib Top Page


If you have any comments about this page please send them to Nick West