|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Studio 12.3: C User's Guide Oracle Solaris Studio 12.3 Information Library|
This section contains information related to constants that are specific to the Oracle Solaris Studio C compiler.
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 -xc99=all, 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:
long long int
The compiler issues a warning if the value exceeds the largest value a long long int can represent.
With the -xc99=none, 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:
A multiple-character constant that is not an escape sequence has a value derived from the numeric values of each character. For example, the constant ’123’ has a value of:
With the -Xs option and in other, non-ISO versions of C, the value is: