#include using namespace std; int value = 100; int main() { int value = 10 ; //Scope of this is till end of the function cout << value << endl ; { int value = 20 ; //scope of this is till closing brace B cout << value << endl ; { int value = 30 ; //Scope till closing brace A cout << value << endl ; } //A cout << value << endl ; } //B cout << value << endl ; cout << ::value << endl ; return 0; }