What is the output of the following code snippet? int x = 6;…

PYQ DSSSB 2025

What is the output of the following code snippet?

int x = 6;
System.out.println(x++ + ++x);
  1. A.

    12

  2. B.

    14

  3. C.

    11

  4. D.

    13

Attempted by 772 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Complete Course

Loading lesson…