3 ms·
In C, undefined behavior has a quite specific meaning: invoking undefined behavior is an error in the program and the implementation is at liberty to do anythin
by kazinator 11y ago
In C, undefined behavior has a quite specific meaning: invoking undefined behavior is an error in the program and the implementation is at liberty to do anything it pleases.
That doesn't match my understanding, which is that undefined behavior is about erroneous constructs or data, or non-portable constructs.
Oh look, you quoted it. Thanks!
Some undefined behaviors are important sources for useful, documented extensions.