- 1
what does '+=' mean?
and how to use it?
4 Answers
+ 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