Question: what is the difference between global variable and static global variable?
Answer: They're both stored in the data segment; the difference is that the global has an externally-visible linker symbol, and the static global does not. A global variable's scope is in all the files.. ... Static globals cannot be accessed from other files while global variables can be accessed using the extern keyword.