+ 4
What does '+=' sign mean?
8 Answers
+ 12
C += A is equivalent to C = C + A
+ 4
well a += b is a = b + a
+ 1
eg.x=x+y can be written in short form as x+=y
+ 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.
+ 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.
0
addition and then assignment
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++
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 .