What is the purpose of extern storage specifier in C++.

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

Used to resolve the scope of global symbol

#include <iostream>

using namespace std;	
main() {
   extern int i;
int i = 20;
Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.