Next: Type Size, Previous: Primitive Types, Up: Top [Contents][Index]
A constant is an expression that stands for a specific value by explicitly representing the desired value. C allows constants for numbers, characters, and strings. We have already seen numeric and string constants in the examples.
• Integer Constants | Literal integer values. | |
• Integer Const Type | Types of literal integer values. | |
• Floating Constants | Literal floating-point values. | |
• Imaginary Constants | Literal imaginary number values. | |
• Invalid Numbers | Avoiding preprocessing number misconceptions. | |
• Character Constants | Literal character values. | |
• String Constants | Literal string values. | |
• UTF-8 String Constants | Literal UTF-8 string values. | |
• Unicode Character Codes | Unicode characters represented in either UTF-16 or UTF-32. | |
• Wide Character Constants | Literal characters values larger than 8 bits. | |
• Wide String Constants | Literal string values made up of 16- or 32-bit characters. |