Domanda di colloquio di Qualcomm

What does the "static" keyword mean?

Risposta di colloquio

Anonimo

1 ott 2019

"Static" keyword is used to indicate the scope of the variable/function. Sttaic variables are stored in the data memory as opposed to stack. They can be initialized once and they preserve their values out of function but their scope is restricted to the file in which they're defined.