Paul Eggert <[EMAIL PROTECTED]> writes: | [EMAIL PROTECTED] (Richard Kenner) writes: | | > I found my copy of K&R (Second Edition).... | | Robert Dewar <[EMAIL PROTECTED]> writes: | | > so in fact the new C standard has changed | > nothing from a definitional point of view, | | Wait, though: K&Rv2 is post-C89. If memory serves, it was C89 | that established the rule that signed integer overflow has | undefined behavior whereas unsigned overflow is well-defined.
My memory is that signed integer arithmetic overflow is undefined by K&R C; unfortunately, my copy of the '77 edition of K&R is at office, thousands of miles away from where I'm. -- Gaby