News for hackers. Stuff that matters.
Re:Undefined behavior can result in time travel by mikeash on Saturday June 28, 2014 @11:11AM (#7958376)
This is a good reminder that "undefined behavior" includes "doing what I want it to do".

It's also a good example of how undefined behavior allows for optimizations. The compiler is able to evaluate your expression at compile time rather than emitting a division instruction, even though this changes how the program behaves.

C sure is fun.

There are no comments on this comment yet.