Question 11595 – Operator
November 15, 2023GATE 2002
November 15, 2023Question 11334 – Operator
main( ) { int x; x=3*4%5; printf(“x=%d”,x); }
The output is
Correct Answer: A
Question 3 Explanation:
‘*’ and ‘%’ operator have the same precedence but the associativity is from left to write. So x = 3*4%5 = 12%5 = 2.
x=2
x=2.3
x=5
x=1.9
Subscribe
Login
0 Comments