0

please, someone explain this to me

int x = 10; x += 4; // equivalent to x = x + 4 x -= 5; // equivalent to x = x - 5 but the quiz question is int x =10 x _ = _; the answer was int x=10 x/= 5;

9th Sep 2016, 10:27 PM
William Guan
William Guan - avatar
1 Odpowiedź
+ 2
x/=5 is equivalent to x = x/5. Also, x*=5 is equivalent to x = x*5.
9th Sep 2016, 10:30 PM
Zen
Zen - avatar