
#include <iostream>
using namespace std;


int i = 5; // global i

int main()
{
   int j = 7;
   cout << i << "\n";
        {
            int i = 10, j = 11;
            cout << i << "\n"; // local value of i is 10
            cout << ::i << "\n"; // global value of i is 5
            cout << j << "\n"; // value of j here is 11
            //The other j (value 7) is inaccessible
        }
   cout << j << "\n"; // value of j here is 7
  
   return 0;
}
