// castAway2.cc P. Conrad CISC181 03/15/06

#include <iostream>
using namespace std;

// will this compile?  will it run?

int main(void)
{
  const int answer = 42;

  int *x;

  //can we cast from const int * to int *?

  
  x = (int *) &answer; 

  cout << "&answer =" << &answer << endl;
  cout << "x =" << x << endl;

  (*x)++;

  cout << "answer = " << answer << endl;


}
