Showing posts with label Static variables can be declare Global in C Programming Language. Show all posts
Showing posts with label Static variables can be declare Global in C Programming Language. Show all posts

Can we declare static variable Global in C Programming Language?



Can we declare static variable as Global in C Programming Language?

We can declare a static variable as Global and Local. There is some difference between declaring a variable as Global and Local. If we declare a variable as local then it can accessed only with in the function where it is declared in a program.
While if we declare a variable as Global then it can be accessed by all functions with in the program.