Concluding Remarks
Integer overflow and underflow occur when an integer arithmetic operation results in a value that lies outside the range of the values that can be stored in that variable. The least significant bits resulting from the operation are stored in the variable and the most significant bits are lost. The term wraparound is used to refer to this behavior.
Integer overflow and underflow can lead to dangerous software errors. Programmers should be aware of such runtime errors and take all possible measures to circumvent them.