Conditional Operator

Conditional Operator

The c# ternary operator (?:) in C# does the same thing as the if else statement though it is more suited on simple statements such as assigning two different values depending…