Find the output of the following “C” code : Main ( ) { int x = 20, y = 35; x =…
PYQ UGC NET 2005Modified — slightly modified from the official paper; see the solution
Find the output of the following “C” code :
Main ( )
{ int x = 20, y = 35;
x = y++ + x++;
y = ++y + ++x;
printf (“%d, %d\n”, x, y);
}
- A.
55, 93
- B.
53, 97
- C.
56, 95
- D.
Undefined behavior
Attempted by 38 students.
Sign up free to check your answer
Sign up freeLoading lesson…

