Introduction
Static memory allocation sets aside fixed memory before the program runs. It helps keep memory use simple and predictable.
When you know the exact size of data before running the program.
For storing configuration values that do not change.
When you want fast access to variables without overhead.
In embedded systems with limited memory and no dynamic allocation.
For global variables shared across functions.