3 ms·
> I'm not sure I understand you. What is the difference between undefined and unspecified behavior? They explained in the very next sentence: "e.g. it's not sp
by tom_mellior 10y ago
> I'm not sure I understand you. What is the difference between undefined and unspecified behavior?
They explained in the very next sentence: "e.g. it's not specified what result an integer overflow gives, but the rest of the program must continue normally".
(In the C standard, "unspecified" is an explicit marker for things where a compiler must document its choice of semantics.)