// Use of dereferencing
#include <iostream>
using namespace std;

int main(){
  int   n = 25, *pn;
  cout << "n   = " << n  << endl;

  pn = &n;  // pn holds the address of n
  cout << "*pn = " << *pn << endl << endl;

  *pn = 50;

  cout << "n   = " << n   << endl;
  cout << "*pn = " << *pn << endl;

  return 0;
}
