|
|
External Variables |
|
In a situation where two source files are in use then when you want
a global variable to be accessible in the "other" file then you
need to declare it as extern in that file.
If some global variables are declared twice without an
extern then the linker would give a warning as it does
not know which one to use.
extern says "I'm going to use this variable but its
defined in another file."
Not suitable for use in function parameter lists.