Multiple choice technology programming languages

void main() { int x=20,y=35; x= y++ + x++; y= ++y + ++x; printf(" %d %d" , x,y); }

  1. x=57 & y=94

  2. x=57,y=55

  3. X = 57 Y= 93

  4. X = 37 Y= 65

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Evaluating step by step: x=20,y=35. First line: x = y++ + x++ = 35 + 20 = 55 (then y becomes 36, x becomes 56). Second line: y = ++y + ++x = 37 + 57 = 94. Final: x=57, y=94. The answer matches.