Question: class Output { public static void main(String args[]) { int x , y; x = 10; x++; --x; y = x++; System.out.println(x +

class Output { public static void main(String args[]) {

int x , y;

x = 10;

x++;

--x;

y = x++;

System.out.println(x + " " + y);

}

}

c) answer11 10

Why the answer is 11 10 not 10 11 the is not by going inorder?

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

class Output public static void mainString args int x y declare 2 integer variables x and y x 10 se... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!