Slide 3.10: Character storage (cont.) Slide 4.1: Programming Laboratory I: searching a string for a character Home |
true
and false
.
AND
(∧), OR
(∨), and NOT
(¬).
|
|
|
NOT
operator has the highest precedence, followed by AND
and OR
. May use parentheses to avoid any ambiguity.
X | Y | Z | Y OR Z | X AND (Y OR Z) | X AND Y | X AND Z | (X AND Y) OR (X AND Z) | |||
---|---|---|---|---|---|---|---|---|---|---|