write about conditional operator? 11th
Answers
Answered by
2
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
please support me yarr and mark as Brainliiests
Answered by
2
Answer:
The result of the conditional operator is the result of whichever operand is evaluated — the second or the third. Only one of the last two operands is evaluated in a conditional expression. Conditional expressions have right-to-left associativity. The first operand must be of integral or pointer type
Explanation:
- && and || In some programming languages, e.g. Java, the term conditional operator refers to short circuit boolean operators && and || . The second expression is evaluated only when the first expression is not sufficient to determine the value of the whole expression.
- Conditional operators are used to evaluate a condition that's applied to one or two boolean expressions. The result of the evaluation is either true or false
Similar questions