Computer Science, asked by dhananipalak6, 6 months ago

write the output of the following if a=2,b=5; int a+=(a++)+(++b)+(++a)+b;​

Answers

Answered by anindyaadhikari13
8

Question:-

Write the output of the following.

Working Out:-

Given,

a=2

b=5

a+=a++ + ++b + ++a + b;

Or,

a=2+2+6+4+6

Or,

a=20

Now,

b=6

Answer:-

a=20

b=6

Similar questions