Where in the C99 standard does it say that signed integer overflow is undefined behavior?
问题 Where in the C99 standard does it say that signed integer overflow is undefined behavior? I see the comment about unsigned integer overflow being well-defined (see Why is unsigned integer overflow defined behavior but signed integer overflow isn't?) in section 6.2.5: A computation involving unsigned operands can never overflow, because a result that cannot be represented by the resulting unsigned integer type is reduced modulo the number that is one greater than the largest value that can be