Computer Science, asked by ghezta6, 1 year ago

solve
if a=5
a+= ++a
find a

Answers

Answered by muakanshakya
0
hey there!!

➖➖➖➖➖➖➖➖➖⬇️

Answer:-

initial value of a =5


a+=++a

Here shorthand operator is used, so expand it


a=a+++a
a=5++(++5)

=>++5 will become 6 as it is pre increment operator


a=5+6

a=11


Thanks


Hope it helps u ^_^
Similar questions