Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Integer values used in the following manner must be guranteed correct:

  • As an array index
  • In any pointer arithmetic
  • As a length or size of an object
  • As the bound of an array (for example, a loop counter)  

Most integer operations can result in overflow if the resulting value cannot be represented by the underlying representation of the integer. The following table indicates which operators can result in overflow:

...