Question
What should be expression1 evaluate to in using ternary operator as in this line?
expression1 ? expression2 : expression3
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 statements are incorrect? ....
Question 8. Which of these statements are incorrect? ....
Submit Solution