1, integer constant: it is a common integer, including positive integer, negative integer and 0, and its data type is obviously an integer.
2. Long integer constant: The minimum numerical range of is Decimal-2147483647 ~+2147483647, which takes up at least 4 bytes in the computer.
Second, the writing style is different.
1, integer constant: there is no+or-before the integer constant, and-10 is actually a unary-operator and operand 10. Similarly, the decimal representation of an integer constant is not 0, so writing a 0 alone is actually an octal constant.
2. Long integer constants: Writing methods are also divided into decimal, octal and hexadecimal integers, the only difference is to add lowercase letters "L" or uppercase letters "L" at the end of the integer.
Third, memory storage is different.
1, integer constant: the memory size and numerical range of integer constants depend on the compiler.
2. Long integer constant: The byte length is related to the operating system and compiler. Long int is at least 32 bits long, while a 64-bit Unix-like system is 64 bits long.
Baidu encyclopedia-long integer
Baidu Encyclopedia-Integer Constant