♦ Logical Operators in C
♣ Example4: Logical Operators in C
Logical Operators in C are used to evaluate conditional statements and produce Boolean output.[email protected] |
---|
&&@returns True if all variables/statements are True |
||@returns True if atleast one variables/statements are True |
[email protected] the reverse of Boolean value |
Note that 0 corresponds to false and 1 corresponds to true.
Example
Input:
Output: