Hello everyone,


I think in practical experience, extern is useful only when we have more than one compile unit (cpp file) and making cross-reference between compile units.

In the MSDN extern sample,

http://msdn2.microsoft.com/en-us/library/0603949d.aspx

It only uses one source file (compile unit) to demonstrate the usage of extern, is it correct and practical?


thanks in advance,
George