Computer Science, asked by Anonymous, 7 months ago

If a=8
Tell value of
a=a- ++a + a++ +4;

According to java programs

Answers

Answered by ashu6145
1

Answer:

a=8 Then --a=7 chnge before operation now a=7

a--=7 because the value of a decreases after the operation to 6 now a=6 then a++=6 because the value of a changes after operation to 7

a=(--a)+(a--)+(a++)

a=7+7+6=20

So the output displayed will be 20

--a is prediciment operation value changes before operation whereas a-- and a++ id surrficiment operator value canges after operation.

Mark as brainlist

Answered by Anonymous
4

Answer:

a = a - ++a + a++ + 4 ;

a = 8 - 9 + 9 + 4

a = 8 + 9 + 4 - 9

a = 21 - 9

a = 12

Similar questions