// pointers to const
// constant pointers

#include <iostream>
using namespace std;

int main()
{

  const int SIZE=100;
  int num=1000;

//  SIZE=1000; illegal to assign to a const variable

//  int *ip = &SIZE; illegal to have a regular pointer point to a const

  const int *ip = &SIZE;
  ip = &num;

  // ip is a constant pointer to a constant integer
  // not very useful
  const int * const iptr=&SIZE;

  return 0;
}
