Electrical and Computer Engineering
14 of 21
UAH
CPE 112
Logical Operators
•The binary AND operator (&&) requires both relationships to be true in order for the overall result to be true.
•The binary OR operator (||) has an overall result of true if either or both of two logical expressions are true.
•The unary NOT operator (!) has a result of true if the logical expression is false.