0
What does variable += variable do
what is the difference between (int x += int y) and (int x + int y).
1 Antwort
+ 5
a+=b is equivalent to a=a+b
It will calculate sum of a and b and store it in a.
Example: a=4,b=2;
a+=b;
means a=4+2
so a=6