Find the larger of two numbers given by the user using ternary operator.
Answers
Answered by
6
Explanation:
The expression exp1 will be evaluated always. Execution of exp2 and exp3 depends on the outcome of exp1. If the outcome of exp1 is non zero then exp2 will be evaluated, otherwise, exp3 will be evaluated. Program to find the largest number among two numbers using ternary operator.
here is your answers
Similar questions