Note. Logical False is presented by integral zero, and logical True is presented by any integer other than zero.
The expressions that contain the relation operations or logical operations have the values of 0 (False) or 1 (True).
== Usage: ie1 == ie2
True, if ie1 is equal to ie2; False otherwise.
Example:
if (i == 0) break;
!= Usage: ie1 != ie2
True, if ie1 is not equal to ie2.
Example:
while (i != 0)
i = func;
< Usage: ae1 < ae2
True, if ae1 is less than ae2.
Example:
if (x < 0)
printf ("negative");
<= Usage: ae1 <= ae2
True, if ae1 is less than or equal to ae2.
Usage: ae1 > ae2
True, if ae1 is larger than ae2.
Example:
if (x > 0)
printf ("positive");
>= Usage: ae1 >= ae2
True, if ae1 is larger than or equal to ae2.
|