describe different types of logical operators woth example
Answers
Answered by
0
Answer:
MARK ME AS BRAINLIEST
Explanation:
Following table shows all the logical operators supported by C language. Assume variable A holds 1 and variable B holds 0, then −
OperatorDescriptionExample&&Called Logical AND operator. If both the operands are non-zero, then the condition becomes true.(A && B) is false.||Called Logical OR Operator. If any of the two operands is non-zero, then the condition becomes true.(A || B) is true.!Called Logical NOT Operator. It is used to reverse the logical state of its operand. If a condition is true, then Logical NOT operator will make it false.!(A && B) is true.
Similar questions