0 votes
in C Plus Plus by

What is the purpose of the Extern Storage Specifier?

1 Answer

0 votes
by

“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.

...