5.5.3.Logical AND (&&) returns a true value if both relational expressions are true. |
|
Logical OR (||) returns true if any of the expressions are true. |
Negations(!) return complements of values of relational expressions. |
R1 | R2 | R1 && R2 | R1 || R2 | ! R1 | T | T | T | T | F | T | F | F | T | F | F | T | F | T | T | F | F | F | F | T |
|
- Logical operators AND, and OR have higher priority than assignment operators.
- Logical operators AND, and OR have lower priority than relational operators.
- Negation operators have the same priority as unary operators.
|