Re:What is C in practice?
by JoshTriplett on Monday June 29, 2015 @01:30PM
(#9799530)
That's a question for which multiple answers are correct: a, b, and c.
[ Parent
| on HN ]
Re:What is C in practice?
by ustolemyname on Monday June 29, 2015 @02:09PM
(#9799818)
I disagree regarding b. I think you'll find the outcome of this expression quite predictable:
int b; int c = b * 0;
Re:What is C in practice?
by JoshTriplett on Monday June 29, 2015 @04:36PM
(#9800842)
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.)