This seems very trivial but a somewhat rigorous explanation for the following behavior will help my understanding of extern
a lot.So I\'ll appreciate your answe
Nobody uses extern in this way. extern is usually used on big projects, lots of .c , .h files and some variables needs to be shared. On those circumstances, compilation often fails to resolve variable declaration (perhaps, it's on some .h file which yet to compile), then "extern" is used to tell compilar to leave it for now and proceed compilation, this thing will be dealt at linking phase.