What is += | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is +=

28th Oct 2016, 6:38 PM
Shruti Singh
Shruti Singh - avatar
11 Answers
+ 12
when you write a += b; it is same as a = a + b; It just says "increment left side with value on right side". There are similar operators like -=, *=, /= or %= which work the same way.
28th Oct 2016, 6:45 PM
Daniel Oravec
Daniel Oravec - avatar
+ 4
+= used to Addition a=1 a+=3 then a=4
9th Feb 2018, 7:15 PM
sarvesh hardikar
sarvesh hardikar - avatar
+ 1
it simply means +.
6th Jan 2017, 11:59 PM
Roy Del Rosario
Roy Del Rosario - avatar
0
yes
28th Oct 2016, 8:40 PM
Yaroslaw Dribnyuk
Yaroslaw Dribnyuk - avatar
0
x+=1 is the same x=x+1 the same with x=x/5 is the same as x=x/5
29th Oct 2016, 12:24 PM
ibrahim dirir
ibrahim dirir - avatar
0
hi daniel
22nd Nov 2016, 4:03 PM
Rohit kumar
Rohit kumar - avatar
0
we have losts of like this operators... +=; -=; /=; *=; which means.... suppose e.g. x+=y; which is nothing but... x=x+y; both are similar meaning,but representation are different.....
24th Nov 2016, 12:44 PM
Arun Vishwakarma
Arun Vishwakarma - avatar
0
they r operater
8th Jan 2017, 5:00 AM
piyush soni
piyush soni - avatar
0
if take example if a=4,b; then a+=b means a=a+b; is it clear if any doubt ask me
11th Feb 2018, 2:56 AM
HAREESH MARDHAPU
HAREESH MARDHAPU - avatar
0
that means if take x=10 then x+=6 that means x=x+6 we will assign in simple way
16th Aug 2018, 7:36 AM
HAREESH MARDHAPU
HAREESH MARDHAPU - avatar
0
when we see the operators += -= /= *= %= if given the values as a=5 a+=3 then b becomes a=a+3 as like all we use all of these
25th Aug 2018, 7:36 AM
HAREESH MARDHAPU
HAREESH MARDHAPU - avatar