# 整型Integer Types

``````/* Long decimal constants */
10L
79L

/* Long octal constants */
012L
0115L

0xaL or 0xAL
0X4fL or 0x4FL

/* Unsigned long decimal constant */
776745UL
778866LU
``````

• 不带后缀的十进制常量的类型是 `int`long intunsigned long int。可用来表示常量值的三种类型中的第一个类型是分配给常量的类型。The type for a decimal constant without a suffix is either `int`, long int, or unsigned long int. The first of these three types in which the constant's value can be represented is the type assigned to the constant.

• 分配给不带后缀的八进制和十六进制常量的类型是 `int``unsigned int`long intunsigned long int，具体取决于常量的大小。The type assigned to octal and hexadecimal constants without suffixes is `int`, `unsigned int`, long int, or unsigned long int depending on the size of the constant.

• 分配给带 uU 后缀的常量的类型是 unsigned intunsigned long int，具体取决于常量的大小。The type assigned to constants with a u or U suffix is unsigned int or unsigned long int depending on their size.

• 分配给带 lL 后缀的常量的类型是 long intunsigned long int，具体取决于常量的大小。The type assigned to constants with an l or L suffix is long int or unsigned long int depending on their size.

• 分配给带 uU 后缀的常量和带 lL 后缀的常量的类型是 unsigned long intThe type assigned to constants with a u or U and an l or L suffix is unsigned long int.