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
1
Answer:
a=10
b=5
c=-4
i think so because it is not easy increment and decrement
Answered by
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