2. Integer constants are ordinary integers, including positive integers, negative integers and 0, and their data types are obviously integers;
3. Integer constants include short integers, long integers and unsigned integers.
4, binary, for computers, 1, 0 stands for on and off, yes and no, the machine only knows binary;
5, 10 decimal, of course, for the convenience of our human use, our childhood habit is to use decimal, which is beyond doubt;
6. 16 hexadecimal, and the memory address space is represented by 16 hexadecimal data, such as 0x8049324.
Extended data:
Introduction to integer constants:
If there is no letter "l" or "l" after an integer constant, and it is beyond the numerical range that a short integer constant can represent, it is automatically considered as a long integer constant. For example, -32769, 32768 and 40000 are all long integer constants.
Because integer constants are divided into short integer and long integer, there are three writing forms: decimal, octal and hexadecimal, so we should pay attention to the distinction when using integer constants. For example, 10 and 10L are different integer constants. Although they have the same value, they occupy different bytes in memory. Another example: 10, 0 10, 0x 10 are short integer constants, but they represent different integer values.
Baidu Encyclopedia-Integer Constant