Re:I Do Not Know C: Short quiz on undefined behavior (2015)
by to3m on Monday February 13, 2017 @08:34PM
(#13640499)
In the main, people seem to be unfamiliar with what lies underneath C, so they never seem to really get this idea that you might be able to (or want to) expect any behaviour other than that imposed by its own definition.
[ Parent
| on HN ]
Re:I Do Not Know C: Short quiz on undefined behavior (2015)
by TillE on Monday February 13, 2017 @09:04PM
(#13640609)
Right. Except for a few optimizer edge cases, you generally know what "undefined behavior" is going to spit out on a particular machine. Signed integer overflow, for example, almost always happens exactly the way you'd expect.