Linkage
Linkage is a C identifier property determining whether declarations in different scopes or translation units designate the same entity.
Modern C, Third Edition
Linkage is the C property determining whether declarations in different scopes or translation units can designate the same entity.
- How it is used
- Explains how declarations refer to shared or separate entities across scopes and translation units.
- How deep it goes
- Distinguishes external, internal, and no linkage, then separates linkage from storage duration and explains extern and static.
- Examples
- Uses extern shadowing, file-scope and block-scope identifiers, object files, library functions, and a storage-class comparison table.
- What you can do after
- Evaluate whether declarations designate the same entity and distinguish linkage from storage duration.
Modern C
Linkage is a property of a C identifier that determines whether declarations in different scopes or translation units designate the same entity.
- How it is used
- Explains how C declarations refer to the same entities across scopes and object files.
- How deep it goes
- Distinguishes external, internal, and absent linkage, while relating them to scope, storage duration, and storage classes.
- Examples
- Uses local-variable shadowing, an extern declaration, file-scope objects, and a storage-class comparison table.
- What you can do after
- Evaluate which declarations designate the same object or function and distinguish linkage from storage duration.
Related concepts
- applicationproduces · An application is a software program or system that performs tasks or provides functionality for users or other software systems.
- external linkageincludes · External linkage is the property that allows declarations in different translation units to designate the same entity.
- internal linkageincludes · Internal linkage is the property restricting an identifier’s designated entity to a single translation unit.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

