++ Past Maximum Value

Started by
9 comments, last by pinacolada 18 years, 9 months ago
Quote:Original post by Inmate2993
the specification also states that when you increment past the size of the variable, it'll wrap around, depending on if its signed or not. (Signed variables would loop to the most negative number possible)


The standard only covers unsigned overflow. Signed overflow is "undefined".

This topic is closed to new replies.

Advertisement