- 1

what does '+=' mean?

and how to use it?

21st Nov 2016, 3:13 PM
Hossain Abeer
Hossain Abeer - avatar
4 Answers
+ 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