explain, with an example, how the conditional operator (? :) can be used as an alternative to if else.
Answers
Answered by
0
Answer:
C#'s conditional operator ( ?: ) is a concise alternative to an if/else statement. This operator works on three values. The first is a true/false expression. ... That way when the true/false expression is false , a second conditional operator checks another condition.
Answered by
8
Explanation:
I think this answers help you
Attachments:
Similar questions