Question: what is the difference between extern and global variable declaration?
Answer: It is possible to create a global variable in one file and access it from another file. In order to do this, the variable must be declared in both files, but the keyword extern must precede the "second" declaration. ... A global static variable is one that can only be accessed in the file where it is created.