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
Chemistry,
15 days ago
History,
15 days ago
English,
1 month ago
Social Sciences,
9 months ago
Economy,
9 months ago