When the following code is executed what will be the value of x and y ? int x…

PYQ UGC NET 2013

When the following code is executed what will be the value of x and y ? int x = 1, y = 0; y = x++;

  1. A.

    2,1

  2. B.

    2,2

  3. C.

    1,1

  4. D.

    1,2

Attempted by 57 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…