There are two ways to declare varibles.
1. Locally
2. Globally When you declare a variable locally in any function that means it is only accessible by that function. When you declare a variable globally so it is accessible by all the functions in the program. Declaring variables with static keyword means you are setting its value null.
The accessibility. The global one: almost everywhere in the code may reference to the global variable directly. The private variable, is private to the declaring module (class, method, assembly) only. Outside of that module has no access to it directly.
A static variable is a variable allocated in static storage. A local variable is a variable declared inside a function. A global variable is a variable declared outside of any class or function. Note that local variables and global variables can both be allocated in static storage.
the difference between global and international strategy
what is the difference between international communication and global communication
While you declaring the global variable you should declare it correctly... This problem mostly arise because any one of the data type in global should not have variable.
Static may be local of global -local static variable is limited to the function scope. and retain it's value when function is been called . compiler differentiate static variables with a prefix function name while dealing with same name static variable in different functions. - Global static variable is visible to all the function defined in the file and retain it value but it cannot be used outside this file. now Global Variable --- this variable is also visible to all of the functions inside the file but also can be used outside the file via extern keyword.
True, a variable cannot be both global and local. But if a global and a local variable share the same name, the local one will hide the global.
Global variables are non-local variables. That is, variables that are not defined in a function or class. They are globally accessible to all code in the same translation unit. External variables are global variables that have external linkage; they are accessible across translation units.
essential diffrence between global and local optimization
There is no difference between the two. The global depletion of ozone is the hole over ozone only.
'global static'?! There is no such thing.
what is the difference between global politics and international politics