/*******overflow.c - A sample source that****** *********** illustrates an overflow **********/ #include #include /*Multiplies a number by itself repeatedly.*/ void mult(int x) { int count = 0; int y=1; while (count < 25) { /*count increments by 1.*/ count = count + 1; /*Multiplication of the current value of "y"(the current product) */ /*by the value of "x"(the original term). */ y = y * x; /*Output to the standard output device the value of "y".*/ printf ("%d \n", y); } } /*Prototype main function*/ int main(int argc, char *argv[]) { /*Conversion of command line argument to an integer.*/ int i = atoi (argv[1]); /*Call to the function "mult()".*/ mult(i); /*Return to O.S.*/ return 0; }