S
shilpa
Hi,
I just wanted to know whether we can access global variable within a
local block , where both variables are having same name.
For ex:
int temp=5 ;
{
int temp=10;
cout<<temp++;
}
Is it possible to access the global temp variable in the local block.
If yes, please let me know.
I just wanted to know whether we can access global variable within a
local block , where both variables are having same name.
For ex:
int temp=5 ;
{
int temp=10;
cout<<temp++;
}
Is it possible to access the global temp variable in the local block.
If yes, please let me know.