I want to ask how do we access the global variables if we know that the same name also occurs in the local function. So according to C local function with override the global but what if i want to access the global variable's value. Also the same problem occurs if i nest certain statements and use the same variable name throughout then how am i going to get the specific value as per level. eg.
[Code]
int a=11;
int main()
{
int a=10;
{
int a=5;
{
int a=4;
{
int a=3;
printf("%d",a);//How can i access other values of a from here
}
}
}
}
Thanks in advance