|
|
Numeric Constants |
|
Specifying an integer number creates an int.
Integers can be specified in octal by prefixing the octal value with a 0.
Integers can be specified in hexadecimal by prefixing the hexadecimal value with 0x.
Appending an upper or lower case L creates a long int
Appending an upper or lower case U creates an unsigned int
Appending UL (upper or lower case) creates an unsigned long int
Specifying a number with a decimal creates a double
Specifying a number in scientific notation creates a double
Appending an F (upper or lower case) creates a float
Character codes can be specified by enclosing the character in single quotes