answersLogoWhite

0

An identifier is a sequence of characters used to denote one of the following:

  • Object or variable name

  • Class, structure, or union name

  • Enumerated type name

  • Member of a class, structure, union, or enumeration

  • Function or class-member function

  • typedef name

  • Label name

  • Macro name

Literals (C++)

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.

A literal may be any of the following:

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

User Avatar

Wiki User

13y ago

What else can I help you with?