Write the statement z = (x > y) ?x : y; using if construct.
Answers
Answered by
1
Answer:
It is Ternary Operator
Condition ? True : False
Explanation:
max = ( 10 > 5 ) ? 10 : 5
here 10 will get assigned to max as it is greater than 5.
Similar questions