Table of Contents

Overflow Exception

About

overflow is instruction exception that is triggered by the ALU via a status flag when the arithmetic operation does not have enough space to be performed.

Example

If a programmer incorrectly:

That variable should have been declared with a bigger data type such as long, which has at least 32 bits on any computer.