0
Could you explain the result of this code in java?
x=4; y=2; System.out.print(x++*y--);
3 odpowiedzi
+ 1
x is 4, y is 2 and you print the product of (x++) and (y--) and the result is 4*2=8
post- increment takes effect after the line on which it takes place
+ 2
Billy Tsouvalas thank you for that explanation
0
thank you😀😀