3 ms·
If the programmer can rely on your behavior, i.e. its being caught, then... that's not really undefined behavior, then. The entire point of undefined behavior
by Filligree 8y ago
If the programmer can rely on your behavior, i.e. its being caught, then... that's not really undefined behavior, then.
The entire point of undefined behavior is that anything can happen. Wrap-around, segmentation faults, elided security checks or even ravenous polar bears, anything goes, and you can't know in advance what will.
- AndyKelley 8y agoIt's undefined behavior when you compile in release-fast or release-small modes.