0

what does this operator mean?

sum += i

14th Jan 2017, 6:41 AM
karama
2 odpowiedzi
+ 2
It's shorthand for "sum = sum + i".
14th Jan 2017, 6:58 AM
Álvaro
+ 1
increment "sum" by "i" value
14th Jan 2017, 6:46 AM
Mohamed