What the mean of += ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What the mean of += ?

20th Oct 2017, 1:05 PM
amir dadashpuor
amir dadashpuor - avatar
3 Answers
+ 9
x += 5 is same as x = x + 5 Adding 5 to the variable x.
20th Oct 2017, 1:09 PM
Dev
Dev - avatar
+ 4
More: perhaps x+=5 equal/same to x=x+5 But In some old compiler x+=5 and x=x+5 is completly different
20th Oct 2017, 4:11 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
+= ;plus equal to; example: x+=y means x=x+y same,
20th Oct 2017, 1:48 PM
Melisha Sabnam
Melisha Sabnam - avatar