Computer Science, asked by kumudbarman57, 11 months ago

Explain the working of conditional operator with a example?

Answers

Answered by aarti240180
4

An Example of Conditional Operators

The conditional operator "&&" first evaluates whether its first operand (i.e., number % 2 == 0) is true and then evaluates whether its second operand (i.e., number % 4 == 0) is true. As both are true, the logical AND condition is true.

Answered by sneha413639
2

Answer:

conditional operator in C#, is an operator that takes three operands (conditions to be checked), the value when the condition is true and value when the condition is false. ... The first operand (specified before the '?:') is the evaluating (conditional) expression.

Similar questions