Operator C Tutorial

Logical OR (||) returns true if any of the expressions are true.
Negations(!) return complements of values of relational expressions.
R1R2R1 && R2R1 || R2! R1
TTTTF
TFFTF
FTFTT
FFFFT
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.