March 2023
Beginner
441 pages
5h 1m
English
The static specifier says the object will have a static storage duration. The memory space for static objects is allocated when the program starts and deallocated when the program ends. Only one instance of a static object exists in the program. If a local variable is marked as static, the space for it is allocated the first time the program control encounters its definition and deallocated when the program exits.