C++ Program to illustrate Scope Resolution Operator:
#include<stdio.h>
#include<iostream.h>
#include<conio.h>
int m=10;
int main()
{
int k,m;
m=30;
k=20;
clrscr();
cout<<"k="<<k<<endl;
cout<<"m="<<m<<endl;
cout<<"::m="<<::m<<endl;
getch();
return(0);
}
#include<stdio.h>
#include<iostream.h>
#include<conio.h>
int m=10;
int main()
{
int k,m;
m=30;
k=20;
clrscr();
cout<<"k="<<k<<endl;
cout<<"m="<<m<<endl;
cout<<"::m="<<::m<<endl;
getch();
return(0);
}
0 comments:
Post a Comment