Programming Lab
Home
About Us
Contact Us
Privacy Policy
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;
}
Home
Subscribe to:
Posts (Atom)