int x=8, y=10;
x+=x++ + x+ ++y
In Java please explain full method how to do it Please.
Answers
Answered by
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
English,
1 month ago
Hindi,
1 month ago
CBSE BOARD XII,
1 month ago
Physics,
2 months ago
World Languages,
2 months ago
Math,
9 months ago
English,
9 months ago
Biology,
9 months ago