What is the output of code? oid main () { int x = 33, y, z; z = x++ + 17; y =…

PYQ DSSSB 2021

What is the output of code? oid main () { int x = 33, y, z; z = x++ + 17; y = ++z - ++x; cout << "x=" << x << " y=" << y << " z=" << z; }

  1. A.

    x = 34 y = 17 z = 51

  2. B.

    x = 35 y = 16 z = 51

  3. C.

    x = 34 y = 16 z = 50

  4. D.

    x = 35 y = 17 z = 51

Attempted by 659 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…