7.4.8. Static Local arrays and Automatic Local arrays
Chapter 6 discussed the storage-class specifier
static local variable in a function definition exists for the program’s duration but is visible only in the function’s body.
Performance Tip 7.1
We can apply static to a local array declaration so that it’s not created and initialized each time the program calls the function and is not destroyed each time the function terminates. This can improve performance, especially when using large arrays.
A program initializes
arrays when their declarations are first encountered. If a
static array is not initialized explicitly by ...