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


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 < <= >= >


Usage Notes

Go Back to the The C++ Crib Top Page

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