conditional operator

The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows: The first operand is implicitly converted to boolean . It is evaluated and all side effects are completed before continuing.