Question
What should be expression1 evaluate to in using ternary operator as in this line?
expression1 ? expression2 : expression3
Answer: Option C
Was this answer helpful ?
The controlling condition of ternary operator must evaluate to boolean.
Was this answer helpful ?
More Questions on This Topic :
Question 1.
Which of these have highest precedence?
....
Question 7.
Which of these is not a bitwise operator?
....
Submit Solution