What is conditional operator?
Answers
Answered by
8
The conditional operator (? :) is a ternary operator (it takes three operands). Theconditional operator works as follows: The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing. If the first operand evaluates to true (1), the second operand is evaluated
Similar questions
Computer Science,
7 months ago
Math,
7 months ago
Math,
7 months ago
Geography,
1 year ago
Biology,
1 year ago
Business Studies,
1 year ago