Computer Science, asked by omgitsthekiller, 6 months ago

Evaluate c in the given java expression if a = 5, b = 8, [2]
int c= ++a + b++ + a+ --b+a++


Answers

Answered by anindyaadhikari13
2

Answer:-

Given,

a=5

b=8

c=++a + b++ + a + --b + a++

Or,

c=6+8+6+8+6

Or,

c=18+16

Or,

c=34

Now,

a=7

b=8

Result:-

c=34

a=7

b=8

Similar questions