solve
if a=5
a+= ++a
find a
Answers
Answered by
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 ^_^
➖➖➖➖➖➖➖➖➖⬇️
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
Computer Science,
6 months ago
Physics,
6 months ago
Math,
6 months ago
Physics,
1 year ago
English,
1 year ago
Business Studies,
1 year ago
Biology,
1 year ago