July 2000
Intermediate to advanced
1280 pages
34h 55m
English
Each programmer-defined name, or identifier, has its lexical scope in the C++ program (often called just scope).
It is called lexical because it refers to a source code segment where the name is known and can be used. It is called scope because outside of this code segment the name is either not known or refers to a different entity. The entities whose names have scopes are the names of programmer-defined data types, functions, parameters, variables, and labels. The possible uses of the names known within the scope include definitions, expressions, and function calls.
Lexical scope is a static name characteristic. This means that the scope is defined by the lexical structure of the program ...
Read now
Unlock full access