Local Variables and Automatic Storage Duration
Variables with automatic storage duration include:
• local variables declared in functions
• function parameters
• local variables or function parameters declared with
Such variables are created when program execution enters the block in which they’re defined, they exist while the block is active and they’re destroyed when the program exits the block. An automatic variable exists only in the nearest enclosing pair of curly braces within the body of the function in which the definition appears, or for the entire function body in the case of a function parameter. Local variables are of automatic storage duration by default. For the remainder of the text, we refer to variables of automatic ...