Redeclaration of global variable vs local variable
In C, the statement int a; when made at file scope, is a declaration and a tentative definition. You can have as many tentative definitions as you want, as long as they all match each other. If a definition (with an initializer) appears before the end of the translation unit, the variable will be initialized … Read more