External linkage
External linkage is the property that allows declarations in different translation units to designate the same entity.
Modern C, Third Edition
External linkage is the property allowing declarations in different translation units to designate the same C entity.
- How it is used
- Coordinates references to shared C objects and functions across object files during linking.
- How deep it goes
- Explains cross-file identity, linker correspondence, extern ambiguity, and contrast with internal linkage, without detailing linker mechanics.
- Examples
- Uses a shadowed global unsigned object, a block-scope extern declaration, and output distinguishing the existing object from a local one.
- What you can do after
- Evaluate whether declarations across object files can designate one shared object or function and distinguish extern from linkage.
Read how Modern C, Third Edition explains external linkage →
Modern C
External linkage is C identifier linkage that allows declarations in different translation units to designate the same object or function.
- How it is used
- Coordinates declarations across object files so programs access the same objects or functions.
- How deep it goes
- Distinguishes identifier linkage from object properties and contrasts external, internal, and absent linkage without extensive linker mechanics.
- Examples
- Uses a shadowing example with a file-scope variable and a block-scope extern declaration.
- What you can do after
- Evaluate/understand whether declarations designate one shared object or separate objects across scopes and object files.
Related concepts
- linkeruses · A linker is a software tool that combines compiled program components, resolves references among them, and produces an executable or library.
- externconfigured by · extern is a language construct for declaring or referring to entities supplied outside the current declaration or compilation unit, including through external linkage or foreign interfaces.
- internal linkagecontrasts with · Internal linkage is the property restricting an identifier’s designated entity to a single translation unit.
- linkagekind of · Linkage is a C identifier property determining whether declarations in different scopes or translation units designate the same entity.
Questions about external linkage
What is external linkage?
External linkage is the property that allows declarations in different translation units to designate the same entity.
Which Manning books explain external linkage?
Modern C, Third Edition and Modern C.
What is the difference between external linkage and internal linkage?
External linkage is the property that allows declarations in different translation units to designate the same entity. Internal linkage is the property restricting an identifier’s designated entity to a single translation unit.
What is external linkage a kind of?
External linkage is a kind of linkage. Linkage is a C identifier property determining whether declarations in different scopes or translation units designate the same entity.
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.

