Question: are all global variables static?
Answer: Global variables are declared outside of all functions. Global variables are stored in Data Segment of process. ... If static variables are declared outside of all functions it will have global scope or it is declared within a function it will have scope within a function and it will retain until the life of program.