This documentation is archived and is not being maintained.

Literals

Invariant program elements are called "literals" or "constants." The terms "literal" and "constant" are used interchangeably here. Literals fall into four major categories: integer, character, floating-point, and string literals.

Grammar

literal :
integer-constant
character-constant
floating-constant
string-literal

See Also

Lexical Conventions

Show: