Int is an unsigned integer type. To put it bluntly, a signed unsigned integer is a negative number.
According to different program compilers, the number of bytes defined by shaping is different. In the C language of 5 1 single chip microcomputer, int stands for two bytes (16 bits); If it is C language of 32-bit ARM processor, int stands for 4 bytes (32 bits). (such as 32-bit XP) define int as 4.
Bytes (32 bits). Pay attention to the range of values. If in a 32-bit system, there is a sign
Int a, followed by a range [-2 3 1, 2 3 1- 1]
Namely [-2 147483648, 2 147483647].
Therefore, an int definition needs to pay attention to several aspects, one is the type, and the other is the size range of stored data.