0 votes
by (1.1k points)

2 Answers

0 votes
by (1.1k points)
selected by
 
Best answer
The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows:

If the first operand evaluates to true (1),

the second operand is evaluated.

If the first operand evaluates to false (0),

the third operand is evaluated.
+1 vote
by (1.6k points)
expresion1? expression2: expression3;
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...