If a=8
Tell value of
a=a- ++a + a++ +4;
According to java programs
Answers
Answered by
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
4
Answer:
a = a - ++a + a++ + 4 ;
a = 8 - 9 + 9 + 4
a = 8 + 9 + 4 - 9
a = 21 - 9
a = 12
Similar questions
Computer Science,
3 months ago
English,
3 months ago
Social Sciences,
3 months ago
Math,
7 months ago
English,
1 year ago