The value of the expression 6 == 3
, in which the
equality operator appears, is 0
, which means false as far as
C++ is concerned.
The value of the expression 6 != 3
, in which the
inequality operator appears, is 1
, which means true as far as
C++ is concerned.
Thus, the value returned by the ==
and !=
predicates
may be either 0
or 1
:
Integer Value | Meaning \ | |
0 | False \
1 | True \ |