Re: OVERFLOW WITH int TYPES
Posted By:
Michael_Wax
Posted On:
Friday, May 11, 2001 07:39 AM
An int is 32 bits long. The result of your a*b calculation is larger than an int, so you get an overflow. The result of 256*33333 is smaller than an int (max value 2147483647), so you see no overflow.