+ 4

What does '+=' sign mean?

26th Jan 2016, 10:41 PM
Miki
8 ответов
+ 12
C += A is equivalent to C = C + A
10th Feb 2016, 6:06 PM
Larry Crowne
+ 4
well a += b is a = b + a
14th Jan 2017, 7:50 AM
XOPGAMINGX _300
XOPGAMINGX _300 - avatar
+ 1
eg.x=x+y can be written in short form as x+=y
11th Jun 2016, 11:12 AM
Collins Adom Baffour
Collins Adom Baffour - avatar
+ 1
It is called "Assignment Operator" or " Short Hand Operator" . += can be explained this example int a = a + 1; or int a += 1; Here , Two Step procedures (1) INCREMENT VARIABLE AT RIGHT SIDE variable a is incremented by 1 (2) ASSIGNING VALUE AT LEFT SIDE value of a is assigned at left side to variable a.
9th Jul 2016, 9:06 AM
Vinod Luhar
+ 1
+= is shorthand for incrementing with the value at right i.e a+=5; is equivalent to a=a+5; there are shorthand operators for other arithmetic operates as well.
9th Jul 2016, 11:23 AM
Prem Sharma
Prem Sharma - avatar
0
addition and then assignment
22nd Jun 2016, 4:02 PM
gandhiyash
0
it's a shortcut here's an example a=a+1 adds 1 to a just as a+=1 would and a shortcut for adding 1 a++
28th Jun 2016, 3:24 AM
Jared ranger
Jared ranger - avatar
0
suppose you have x+=y ; then it means x=x+y ; same thing will be applied for other as * ,-,/ . "+=" in other words you are increment x by y .
24th Jan 2017, 2:34 PM
Indrajeet Ambure