3 ms·
this is correct. i = 0; i+=i++; (0) + (0)++ = 0 next time around (1) + (1)++ = 2
by krob 14y ago
this is correct.
i = 0;
i+=i++;
(0) + (0)++ = 0
next time around
(1) + (1)++ = 2
- yen223 14y agoUnfortunately this is not correct. If you run for (int x = 0; x < 10; x++) { i += i++; Console.WriteLine(i); } i is always 0.