Skip to content

Comment on What is C in practice?parent

Comments

I disagree regarding b. I think you'll find the outcome of this expression quite predictable:

int b; int c = b * 0;

Sure, 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.)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.