scope resolution operatorthe scope resolution


Scope Resolution operator:

The scope resolution operator: : is used to access global variable in the inner block. When global and local variable are identical name the scope resolution operator will help to access the global variable in the inner block.   This cannot be done in C programming.   This operator will read only the global variable.

 

int x=10;

int main()

{clrscr();

int x=100;

{

int x=1000;

cout<<"\n"<

}

cout<<"\n"<

return 0;

}

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: scope resolution operatorthe scope resolution
Reference No:- TGS0161117

Expected delivery within 24 Hours