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

#include <iostream>
using namespace std;

// will this compile?  will it run?

int main(void)
{
  const char answer[] = "The answer to everything is forty-two";

  char *p;

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

  
  p = (char *) answer; 

  cout << "&answer =" << &answer << endl;
  cout << "(int *)p =" << (int *)p << endl;

  p[0] = '#';

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


}
