From C99 Standard:
6.2.1/2
For each different entity that an identifier designates, the
identifier is visible (i.e., can be used) only within a region of
program text called its scope. Different entities designated by the
same identifier either have different scopes, or are in different name
spaces.
I have a confusion with entity and identifier (which I know can be the name of an object). What exactly is an entity according to this quote with example?
Entities are variables, functions, types, etc. Identifiers are names of those entities. For example: