Computer Science, asked by vignesht42, 5 hours ago

Write the statement z = (x > y) ?x : y; using if construct.

Answers

Answered by GaneshNaik16
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