- 1

what does '+=' mean?

and how to use it?

21st Nov 2016, 3:13 PM
Hossain Abeer
Hossain Abeer - avatar
4 odpowiedzi
+ 6
int var = 5; var += 2; is the same as var = var + 2; so var = 5 + 2;
21st Nov 2016, 3:15 PM
Burey
Burey - avatar
+ 3
x=x+2; which is real meaning
21st Nov 2016, 3:19 PM
dhakshin
+ 2
السلام عليكم ورحمة الله وبركاته int x = 3; x +=5; يعني x= x +5; x=3+5; x=8;
11th Mar 2017, 3:09 AM
Hichem Tliche
Hichem Tliche - avatar
+ 1
x += 2 you are increasing x(your variable or number) about 2
21st Nov 2016, 3:17 PM
Leon N.
Leon N. - avatar