Tuesday, 2 September 2014

Rules for Constructing Integer Constants

An integer constant must have at least one digit.

  1. It must not have a decimal point.
  2. It can be either positive or negative.
  3. If no sign precedes an integer constant it is assumed to be positive.
  4. No commas or blanks are allowed within an integer constant.
  5. The allowable range for integer constants is -32768 to 32767.


Ex:
      326, +682, -7000, -5604

No comments:

Post a Comment