covert “if” statement into “ternary operator”
if (a>b)
max=a;
else
max=b;
Answers
Answered by
1
Wanna know facts?
- Ternary operator is also known as Conditional Operator.
- Syntax: variable=(condition)? expression 1: expression 2;
Similar questions