Sunday, January 26, 2014

C++ Program to illustrate Scope Resolution Operator

with 0 Comment
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);
}

0 comments:

Post a Comment

Powered by Blogger.

Blog Archive