Static Variable
Noun · Development
Definitions
A variable allocated in static memory that persists for the entire lifetime of the program rather than being created and destroyed with each function call. In C, a `static` local variable retains its value between invocations; a `static` global variable limits its visibility to the current translation unit.
In plain English: A variable that keeps its value for as long as the program runs, even after the function it lives in finishes executing.
Example: "I used a static variable to count how many times the function has been called — it survives between calls without being global."