Computer Science, asked by snighdashreya42, 2 months ago

Predict output:

int a=10, b=5;

int c=a++ - b++ - a--;

System.out.println(a);

System.out.println(b);

System.out.println(c);​

Answers

Answered by msrnet3872
1

Answer:

a=10

b=5

c=-4

i think so because it is not easy increment and decrement

Answered by khansamar2005
0

Answer:

c=a++ - b++ - a--

=> 10 - 5 - 11

=> -6

a=10 //it got decremented

b=6 // because it got incremented

c=-6

Similar questions