Question: what is the difference between local/ global and static variables?
Answer: The basic difference is on scope of variable. 1) global variable is global for entire project. ... 2) static variable/function can be used by function/file within which it is defined. It cannot be used by any other file in your project.