Usage of extern in C/C++ Language
Declaration of External Variables Modern compilers generally adopt a file-based compilation method, which means that global variables defined in different files are mutually transparent during compilation. In other words, the visibility of global variables is limited to the internal scope of the file during compilation. Here is a simple example. Create a project containing two … Read more