Computer Science, asked by pardhuvadupu, 4 months ago

What will be the result stored in x after evaluating the following expression
If X= 10 and Y=20
X = (X>Y)? 10: Y +2;
pls fast pls fast​

Answers

Answered by pawarsakshi9657
1

Explanation:

The value of X will be 22.

The ternary statement checks if X is greater than Y. If it isn't, it will add 2 to the value of Y and save it in X.

Similar questions