1(iii)
Ternary operator is a:
- (a)logical operator
- (b)arithmetic operator
- (c)relational operator
- (d)conditional operator
Show SolutionHide Solution↓
conditional operator
Reason — Ternary operator is a conditional operator as it evaluates the given condition. Its syntax is as follows:
condition? expression 1 : expression 2
If the condition is true then result of ternary operator is the value of expression 1. Otherwise the result is the value of expression 2.