Find the maximum of two numbers

Report a typo

In the following options, ternary operators were used to find the maximum among two integer variables and store them in a new max variable. However, not all of them are correct. Select all correct ways to write an expression to find the max of two integer numbers a and b using ternary operator.

Select one or more options from the list

Create a free account to access the full topic