Whatever value is specified by the definition.
"extern" is short of "external" which means outside.
Default initial value of extern integral type variable is zero otherwise null.
No extern keyword in Java.
The usual method: with its name: extern int errno; errno= 17;
extern is used only when there is a variable or a function name. so here's what you can do, typedef struct{ int data; }my_struct; extern my_struct my_new_struct; Compilers takes this as a *type*.
Might be, but don't forget the keyword 'extern':int main (void){extern int errno;...}
No such thing, pick one ot the three: static int x; extern int x; int x;
In order to use extern you have to have at least two files. In first one, let's call it file1.cpp, you will define a variable using extern (in this case belongs to int):...extern int myVar = 0;...Then in file2.cpp file where you have main() you need to write following:extern int myVar;Do not initialize the variable in file2.cpp, or you code will not compile.
Storage classes.
auto, extern, static, register, typedef (only formally)
Extern
AUTO EXTERN STATIC are the storage classes in c++