C language provides a "long integer constant". Their minimum numerical range is decimal-2147483647 ~+2147483647, accounting for at least 4 bytes in the computer. Its writing method is 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.
So the legal long integer constant in C language is 0L.
Extended data:
There is no+or-before the integer constant. -10 is actually a unary operator and operand 10. Similarly, the decimal representation of integer constants has no 0. Writing a zero alone is actually an octal constant. The memory size and numerical range of integer constants depend on the compiler.
Because integer constants are divided into short integer and long integer, there are three writing forms: decimal, octal and hexadecimal, so we should pay attention to the distinction when using integer constants. Although they have the same value, they occupy different bytes in memory.