Int value range
In 16-bit computers, the value range of int is -32768~32767, while in 32-bit and 64-bit computers, the value range of int is-2147483648 ~ 2147483647. It is often seen that the value range of int is -32768~32767. In fact, the value range of int depends on the computer system. In 16-bit machines, int occupies 16 bits, one of which is a sign bit, so the range of values is -32768 ~ 32767 (-2 15). In 32-bit and 64-bit machines, int occupies 32 bits, and the range of values is-2/kloc. In C language, int type is used to represent integer value, which usually takes up 4 bytes (32 bits), which will be different in different systems and compilers. In C language, types can be converted between different types of variables. Int types can perform implicit or explicit type conversion with other integer types (such as short and long), and can also perform explicit type conversion with floating-point types (such as float and double).