What is the output of the statement?

Int x, y;

scanf (“%d”, &x);

Y = (x > 5 ? 3 : 4); 

1
This statement will store 3 in y if x is greater than 5, otherwise, it will store 4 in y.
2
This statement will store 2 in y if x is greater than 5, otherwise, it will store 3 in y.
3
This statement will store 6 in y if x is greater than 5, otherwise, it will store 4 in y.
4
This statement will store 4 in y if x is greater than 5, otherwise, it will store 3 in y.
5

None of above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation