Basic Program 5

Write a basic program which shows the use of scope resolution operator.



#include<iostream>
using namespace std;
int a=10;
void main()
{
int a=20;
cout<<"\n a from main function "<<a;

cout<<"\n Global variable a "<<::a;
}