prev

Numeric Constants

next
  1. Specifying an integer number creates an int.

  2. Integers can be specified in octal by prefixing the octal value with a 0.

  3. Integers can be specified in hexadecimal by prefixing the hexadecimal value with 0x.

  4. Appending an upper or lower case L creates a long int

  5. Appending an upper or lower case U creates an unsigned int

  6. Appending UL (upper or lower case) creates an unsigned long int

  7. Specifying a number with a decimal creates a double

  8. Specifying a number in scientific notation creates a double

  9. Appending an F (upper or lower case) creates a float

  10. Character codes can be specified by enclosing the character in single quotes