An integer constant refers to a sequence of digits. It could be either positive or negative. and must have at least one digit.
It mustn’t have a decimal point. No commas or blank are allowed within an integer constant. The allowable range for integer constants is -32767 to 32767.
There are three types of integer constants:
1. decimal :
In decimal notation ,simply we write decimal number. e.g. 24,678
2. octal :
In octal notation, write(0)immediately before the octal represention,e.g.-076,-076
3. hexadecimal :
In hexadecimal notation ,the constant is preceded by 0x,e.g.,0x3e,-0x3e.
Some example of integer constants: