Decimal, octal, and hexadecimal integral constants can be suffixed to indicate type, as shown in the following table.
Table 2-1 Data Type Suffixes
|
With the -std=c99 or -std=c11, the compiler uses the first item of the following list in which the value can be represented, as required by the size of the constant:
int
long int
long long int
The compiler issues a warning if the value exceeds the largest value a long long int can represent.
With the -std=c89, the compiler uses the first item of the following list in which the value can be represented, as required by the size of the constant, when assigning types to unsuffixed constants: