187: Highlights
- If you want to combine two predicate expressions,
and the result is to be
1
if the values of both
expressions are other than 0
,
then use &&
.
- If you want to combine two predicate expressions,
and the result is to be
1
if the value of either
expression is other than 0
,
then use ||
.
- Both
&&
and ||
evaluate their left operand
before they evaluate their right operand. The right operand
is not evaluated if the value of the left operand of an
&&
expression is 0
or if the value of the left
operand of a ||
expression is not 0
.