Definitions

An identifier is a user defined name; variable names are identifiers. Identifiers must not be spelled the same as keywords such as if and while; for example, you cannot create a variable with the name while.

A keyword is a word defined in the C++ language, such as if and while. It is illegal to define an identifier such as a variable name that is spelled the same as a keyword.

Get Learning to Program in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.