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.
What to know first
- compound literalA compound literal is a C expression consisting of a parenthesized type name followed by an initializer that creates an unnamed object.
- memory locationA memory location is an addressable unit or region of computer memory identified for storing or accessing data or instructions.
- objectAn object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.
- read-only objectA read-only object is an object that a program is not permitted to modify through its applicable access or type qualification.
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.
Questions about storage class
What is storage class?
A storage class specifier is a C declaration keyword that specifies an object's storage duration, linkage, or related declaration properties.
Which Manning books explain storage class?
Modern C, Third Edition and Modern C.
What should I know before learning storage class?
Manning books that teach storage class usually introduce compound literal, memory location, object and read-only object first.
What kinds of storage class are there?
Kinds of storage class include thread local and static storage.
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.

