Question
Which of the following operators can operate on a boolean variable?
1. &&
2. ==
3. ?:
4. +=
Answer: Option D
Was this answer helpful ?
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.
Was this answer helpful ?
Submit Solution