liveBook · Manning

Linkage

Linkage is a C identifier property determining whether declarations in different scopes or translation units designate the same entity.

How 2 Manning books explain it

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.

Read how Modern C, Third Edition explains linkage →

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.

Read how Modern C explains linkage →

Related concepts

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.