Example code is as follows, both 'a' are file scope:
1 ...
2 int a;
3 int a;
4 ... // which 'a' is visible?
I know that the two declarations for 'a' are for the same object. But every identifier has a scope, the scopes of the two 'a' should overlap at line 4, which one is visible? If the second 'a' is visible only, does that mean this situation is like the following:
{
int a;
{
int a; // the scope of the first 'a' is hidden
}
}
Thanks