Computer Science, asked by gamervaibhav122, 2 months ago

int x=8, y=10;
x+=x++ + x+ ++y
In Java please explain full method how to do it Please.​

Answers

Answered by rajaman7078
1

Answer:

X=8 , y=10

x+=x++ + x+ ++y

x=x+ x++ + x + ++ y

X=8 + 8 +9 +11

X = 36

Explanation:

++x means prefix in this value is first change and the printed

X++ means postfix. whereas in this case value is first printed and then it is incremented

Similar questions