Qualcomm Interview Question

What does the "static" keyword mean?

Interview Answer

Anonymous

Oct 1, 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.