An integer constant must have at least one digit.
Ex:
326, +682, -7000, -5604
- It must not have a decimal point.
- It can be either positive or negative.
- If no sign precedes an integer constant it is assumed to be positive.
- No commas or blanks are allowed within an integer constant.
- The allowable range for integer constants is -32768 to 32767.
Ex:
326, +682, -7000, -5604
No comments:
Post a Comment