// Using two pointers for the same address
#include <iostream>
using namespace std;

int main ()
{
  int i, *ptr1, *ptr2;
  
  i = 10;
  cout << " i = " << i <<endl;
  cout << " Address of i " << &i <<endl<<endl;  

  ptr1 = &i;
  ptr2 = ptr1;
  
  cout << " Using the 2nd pointer, i = "<< *ptr2 <<endl;
  cout << " Using the 2nd pointer, Address of i = " << ptr2 << endl<<endl;

  return 0;
}

