-
Which of the following operators can operate on a boolean variable?
1. &&
2. ==
3. ?:
4. +=
-
- 1 & 4
- 1, 2 & 3
- 1, 2 & 4
- 3 & 2
- None of these
Correct Option: B
Operator Short circuit AND, &&, equal to, == , ternary if-then-else, ?:, are boolean logical operators. += is an arithmetic operator it can operate only on numeric values.