Storage Duration

The storage-class specifiers can be split into four storage durations: automatic, static, dynamic and thread. Automatic and static storage duration are discussed below. In Chapter 10, you’ll see how to request additional memory in your program dynamically at execution time. Variables allocated dynamically have dynamic storage duration.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.