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;
}