- 1
what does '+=' mean?
and how to use it?
4 odpowiedzi
+ 6
int var = 5;
var += 2;
is the same as
var = var + 2;
so
var = 5 + 2;
+ 3
x=x+2; which is real meaning
+ 2
السلام عليكم ورحمة الله وبركاته
int x = 3;
x +=5;
يعني
x= x +5;
x=3+5;
x=8;
+ 1
x += 2
you are increasing x(your variable or number) about 2