Storage class
A storage class specifier is a C declaration keyword that specifies an object's storage duration, linkage, or related declaration properties.
Modern C, Third Edition
A storage class specifier is a C declaration specifier that controls an object's storage duration, linkage, or related storage properties.
- How it is used
- Organizes C declarations by object lifetime, linkage, visibility, optimization constraints, and thread-specific ownership.
- How deep it goes
- Explains automatic, extern, register, and thread_local behavior with rules and tables, but defers dynamic thread-specific destruction to tss_t APIs.
- Examples
- Uses shadowed local and extern variables, recursive automatic objects, a storage-property table, and thread-specific storage function signatures.
- What you can do after
- Evaluate declarations by predicting object identity, lifetime, visibility, linkage, addressability, and per-thread behavior.
Modern C
A storage class specifier is a C declaration keyword that specifies an object's storage duration, linkage, or related declaration properties.
- How it is used
- Clarifies how C declarations control visibility, linkage, storage duration, and access to existing objects.
- How deep it goes
- Explains shadowing, extern object identity, static lifetime, and initialization, while deferring broader declaration details to a classification table.
- Examples
- Uses nested x declarations, a retained pointer, and file-scope and block-scope i declarations involving extern.
- What you can do after
- Evaluate which object a declaration names and distinguish identifier visibility from object lifetime and usability.
Related concepts
- thread localincludes · Thread-local data is data whose value or instance is independently associated with each executing thread.
- static storageincludes · Static storage duration is the storage duration of an object whose lifetime extends throughout program execution.
- internal linkageconfigures · 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.

