3 ms·
That's a question for which multiple answers are correct: a, b, and c.
by JoshTriplett 11y ago
That's a question for which multiple answers are correct: a, b, and c.
- ustolemyname 11y agoI disagree regarding b. I think you'll find the outcome of this expression quite predictable: int b; int c = b * 0;
- JoshTriplett 11y agoSure, if the expression doesn't depend on the value at all, it probably won't have unpredictable results. (Though as with any kind of undefined behavior, don't count on it, as compilers can be "clever" sometimes.)