Concept Flow - Checked and unchecked arithmetic
Start Arithmetic Operation
Is 'checked' context?
No→Perform unchecked operation
|Yes
Perform checked operation
Overflow?
No→Return result
Yes
Throw OverflowException
The program decides if arithmetic is checked or unchecked. Checked operations detect overflow and throw an error; unchecked operations ignore overflow.