Lifetime/Extent
Definitions:
- Time during which a variable is bound to
a specific memory cell
- Time from Allocation to Deallocation
Storage Class
Definition: Type of variable based on its Lifetime/Extent
Storage Classes in C++:
- auto (Automatic)
- Local variables in blocks and functions
- extern
- Global variables, function names
- register
- Programmer issued Advisory
- static
- History-sensitive variables in functions
- typedef
- Renaming a data type, no allocation/deallocation involved