Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ustolemyname
11y ago
0 comments
Save
Share
I disagree regarding b. I think you'll find the outcome of this expression quite predictable:
int b; int c = b * 0;
0 comments
1 comments · 1 top-level
top
newest
oldest
JoshTriplett
11y ago
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.)
j
/
k
navigate · click thread line to collapse