|
It is also used to declare the variables to be private to a certain file only when declared with global variables. static can also be used with functions, making those functions visible only to file itself.The static keyword is used for extending the lifetime of a particular variable.
The variable remains even after the function call is long gone (the variable is placed in the alterable area of memory),if you declare a static variable inside a function,.
The static keyword can be overloaded.
|