Plz look at this code
#include<iostream.h>
int x=0;
int main()
{
int x=1;
{
int x=2;
cout<<::x;
cout<<x;
}
return 0;
}
<< moderator edit: added [code][/code] tags >>
does anybody know how can i access main local variable x, from inside the block, without using pointers or references?