4 ms·
That is called unspecified behavior not undefined behavior. Major difference.
by just_curioussss 11y ago
That is called unspecified behavior not undefined behavior. Major difference.
- mlvljr 11y agoNot many know (and less people care), funnily :) I have yet to see a thorough (source-to-compiler-intent-to-assembly) comparative description of undefined, unspecified and implementation-defined behaviors, though (not just a somewhat insightful blog, or techno gospel, which the C and C++ standards are).
- nitrogen 11y agoYou could always write one. I recommend the work of John Regehr as a starting reference: http://blog.regehr.org/ http://blog.regehr.org/
- mlvljr 11y agoI wish I had time to learn this first :) But yes, authoring a book titled "Well-defined C (and C++)" one day would be awesome. Thanks for the link.