Quote Originally Posted by laserlight View Post
We have a recent thread that you might want to read: global versus static variables
It say when static use inside in function it is only visible only to the function in which it is defined. and when static use outside the function it say variable will visible to all the functions in the current source file

It means there is no difference between auto global variable (declare outside of function) and static global variable (declare outside of function) because both are visible to all the function in the current source file and both variable will alive until program is running