// Nested and parallel scopes
#include <iostream>
using namespace std;

int k = 11;     // this k is global

int main ()
{
  int k = 22;   // this k is local in main()

  {
    int k = 33; // this k is local in this block
    cout << "Inside internal block: k = " << k << endl;
  }

  cout << "Inside main(): k = " << k << endl;
  cout << "Global k = " << ::k << endl;

  return 0;
} // end main() block
