MORE INFORMATION ON overflow.c




The file overflow.c is a sample source that illustrates an overflow error. The "mult()" function repeatedly multiplies a number by itself. Due to the limited range of the int class, the result of the multiplication soon becomes too large for the class, thus, by definition, an overflow error occurs.




Click here for the source code.