4 ms·
Nice, i would have said 9 just because that's how C interprets it. float x = 6 / 2 * (2 + 1); // x == 9
by ari_elle 14y ago
Nice, i would have said 9 just because that's how C interprets it.
float x = 6 / 2 * (2 + 1); // x == 9
- beatgammit 14y agoRight, but you also had to explicitly add the asterisk for multiplication. I thought the same thing, but the remarks on juxtaposition do have a point. For example, if an integer were callable, you'd do the function call--2(2+1)--independantly of the division.