0
903views
State C language logical operators for AND, OR, NOT and EX-OR operation. Give one example of each.
1 Answer
written 5.6 years ago by | • modified 5.6 years ago |
Sr no | Operator | Symbol | Example |
---|---|---|---|
1 | AND | & is called Logical AND operator. | Y= A&B |
2 | OR | is called Logical OR operator. | Y= AB |
3 | NOT | ~ is called NOT operator. | Y= ~A |
4 | EX-OR | ^ is called logical Ex-OR operator. | Y=A ^B |