What is the purpose of the Extern Storage Specifier?
“Extern” specifier is used to resolve the scope of a global symbol.
#include <iostream >
using nam espace std;
main()
{
extern int i;
cout<<i<<endl;
}
int i=20;
In the above code, “i” can be visible outside the file where it is defined.