Talk:Integer overflow: Difference between revisions

Content deleted Content added
unsigned integers: new section
Line 77:
== unsigned integers ==
 
The article says that integer overflow does not occur for unsigned integers in the C11 standard. This is true, but slightly misleading as readers will think it is a C11 innovation. Actually the same thing was true in the ANSI/C89 standard (3.1.2.5) and the C99 standard (6.2.5). C89 says "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 represented by the resulting unsigned integer type.", while C99 says the same except that the third last word "unsigned" is gone. [[User:Zero0000|Zero]]<sup><small>[[User_talk:Zero0000|talk]]</small></sup> 04:25, 29 January 2023 (UTC)
Apart from one word that seems redundant, both those standards have the same sentence as appears in C11. [[User:Zero0000|Zero]]<sup><small>[[User_talk:Zero0000|talk]]</small></sup> 04:28, 29 January 2023 (UTC)