Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the types of integer variables in C language?
What are the types of integer variables in C language?
Integer constants can be long, short, signed or unsigned. In Tubbo C2.0, the signed integer constants range from -32768 to 32767, and the unsigned integer constants range from 0 to 65535; Signed long integers range from -2 147483648 to 2 147483647. The range of unsigned long integers is 0 to 4294967295. Short integer homographs.

Integer constants can be specified as binary, octal or hexadecimal, such as the following statements:-129, 0x 12fe, 0 177.

A constant is preceded by the symbol 0x, indicating that it is a hexadecimal representation. If the preceding symbol has only one letter 0, it means that the constant is octal.

Sometimes we add the symbol L or U after a constant to indicate whether the constant is a long integer or an unsigned integer: 22388L, 0x4efb2L, 40000U.

Suffixes can be uppercase or lowercase.