Scope of static variables?

Scope of static variable is within the file if it is static global. Scope of static variable is within the function if variable is declared local to a function.
But the life time is throughout the program

Be the first to comment

Leave a Reply

Your email address will not be published.


*