Domanda di colloquio di WD

What does static mean in C?

Risposta di colloquio

Anonimo

22 nov 2019

A static variable is one whose lifetime is bound by the program. To me, I treat it like a scoped global variable. Also static functions are those which are scoped to the object file. This means that I can re-declare functions in different files as long as they are static.