| 5.5.1.Boolean Operator in C |
|
|
| Character Set | Boolean Operator | | && | and | | || | or |
|
&& Operator |
- && operator: evaluate a Boolean expression from left to right.
- Both sides of the operator must evaluate to true before the entire expression becomes true.
|
|| Operator |
- || operator: evaluate from left to right.
- If either side of the condition is true, the whole expression results in true.
|