Which will be the output of the following code if X=5, Y=10?
Y=(X>=Y) ? ++ X : Y-- ;
i) 9 ii) 7 iii) 10 iv) 11
please answer fast I will mark briliant
Answers
Answered by
4
Answer:
Explanation
As 3 is less than 4 so condition of ternary operator is true. Variable c is assigned the value of expression 1 which is 3 * 4 = 12.
Explanation:
hope it will help....
plz follow me and thanks plzzzzz
Similar questions
Math,
3 months ago
Physics,
3 months ago
Math,
6 months ago
Math,
10 months ago
Political Science,
10 months ago