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

What is this +=

20th Jul 2018, 8:09 PM
Saad javed
Saad javed - avatar
11 Answers
+ 28
x += 1; is the same as x = x + 1;
20th Jul 2018, 8:11 PM
Igor Makarsky
Igor Makarsky - avatar
+ 4
its means variable = variable +1
21st Jul 2018, 9:10 AM
Vivek Mishra
Vivek Mishra - avatar
+ 3
its the short write for a = a + b so a*=b means a = a * b and that for every possible operator
20th Jul 2018, 8:10 PM
Roel
Roel - avatar
+ 2
x is increased by 1
21st Jul 2018, 3:50 AM
Arun Bhandari
Arun Bhandari - avatar
+ 1
it is a type of short hand ... e.g x+=1 which then changes to as x=x+1 hope it helps you...
22nd Jul 2018, 3:02 AM
mn121
mn121 - avatar
+ 1
a += b --> // a=a+b // b=b
22nd Jul 2018, 11:17 PM
Hegel Motokoua
Hegel Motokoua - avatar
0
addition and subtraction
22nd Jul 2018, 2:38 AM
Seema
0
It means ex : a+=1, means a= a+1
24th Jul 2018, 3:58 AM
chitra
chitra - avatar
0
x is increased by one
24th Jul 2018, 7:18 AM
varsha devi
varsha devi - avatar
0
example. add=add+variable
1st Aug 2018, 6:41 PM
kishor burkul
0
x+1
21st Aug 2018, 2:55 AM
Marcos Cruz
Marcos Cruz - avatar