Computer Science, asked by santoshkumaryadav125, 4 months ago

if a=5,b=9 then find the value of a+=a++ - ++b +a​

Answers

Answered by Anonymous
0

Answer:

a = 6

Explanation:

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

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

a = 5 +(5 - 10 + 6)

prefix increment/decrement operator means first change the value then use and postfix increment/decrement operator means first  use then change the value

a =  5+ (-5 + 6)

a = 5 + 1

a = 6

Answered by sumagowdasumagowda55
0

a=6

Explanation:

a=5

b=9

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

a+=5-10+6

a+=1

a=a+1

a=5+1

a=6

Similar questions