Example & Tutorial understanding programming in easy ways.

What is the difference between Static and global variable in C language?

- Global variables are variables which are defined outside the function.

- The scope of global variables begins at the point where they are defined and lasts till the end of the file/program. 

-Whereas, static global variables are private to the source file where they are defined and do not conflict with other variables in other source files which would have the same name.

Read More →