extern is an access-specifier in C and C++ which defines a global variable that is visible to all object modules.