What is static identifier?
Question :
What is static identifier?
A file-scope variable that is declared static is visible only to functions within that file. A function-scope or block-scope variable that is declared as static is visible only within that scope. Furthermore, static variables only have a single instance. In the case of function- or block-scope variables, this means that the variable is not ―automatic‖ and thus retains its value across function invocations.
Similar Questions
What is storage class? What are the different storage classes in C?
What is the use of typedef?
What are register variables? What are the advantages of using register variables?
Describe about storage allocation and scope of global, extern, static, local and register variables?
Where does global, static, and local, register variables, free memory and C Program instructions get stored?
Where is the auto variables stored?
What is static identifier?
What are macros? What are its advantages and disadvantages?
What does static variable mean?