I have encountered the following code:
#include using namespace std; int i = 1; int main(int argc,char ** argv) { int i = i; cout&l
the Local variable is accessible, analogous to calling two people with a same name, one inside the room, and one outside the room. The one who is in the scope you are trying to access it , hears it.