Computer Science, asked by abhedikasharma, 2 months ago

Predict the output:

int a = 10;

a++;

System.out.println(a);

a – = (a--) – (--a);

System.out.println(a);​

Answers

Answered by shalinikhargaha029
2

Explanation:

a = 11

a = a-[(a--) -(--a) ]

a= 11-[11-9]

a=11-2

a=9

Similar questions