1. General integer type (abbreviated as "integer type" or "integer type") and long integer type (abbreviated as "long integer type") are the most commonly used types in programs. The type of integer is called "int" and the type of long integer is called "long", 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.
2. In computer science, int () function is an integer data type, which represents a certain mathematical integer range. Integer data types can have different sizes and may or may not contain negative values. In computers, integers are usually represented as a set of binary digits (bits). The packet size is different, so the available integer size is different between different types of computers. Computer hardware (including virtual machines) almost always provides a way to represent processor registers or memory addresses as integers.