Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does programming int mean?
What does programming int mean?
The most commonly used programs are general integer (integer or integer for short) and long integer (long integer for short). The type of integer is called "int", and the type of long integer is called "long int", which can be abbreviated as "long". Int and long are keywords.

Int type occupies 4 bytes in memory, which is 32 bits. The Int type is signed, so not all 32 bits are used to store data. The highest bit is used to store symbols, the highest bit is 0, indicating that data is positive, the highest bit is 1, indicating that data is negative, and the remaining 3 1 bits are used to store data.

Extended data

C language does not specify the expression range of various integer types, that is, it does not specify the binary coding length of various integers. For int and long, only the expression range of long type is not less than int, but they are also allowed to have the same expression range. The concrete C language will specify the expression mode and expression range of integer and long integer.

The basic function of the standard function INT(X) is to get the largest integer not greater than x, such as INT(3.59)=3 and INT(-2.0 1)=-3. INT function is a widely used function, and its application skills can be listed purposefully in teaching.

Baidu encyclopedia -INT