// fiddle.cc  Sample code from CISC181 review session

#include <iostream>
using namespace std;

void fiddle(int *x);

int main(void)
{
  int a = 2;
  fiddle (&a);
  cout << "a = " << a << endl;
  return 0;
}

void fiddle(int *x)
{
   (*x) = -(*x);
   cout << "x=" << hex << x << endl;

   cout << "(*x)=" << dec << (*x) << endl;
}

