// foodle.cc for CISC181 review session 12/08/05  P. Conrad

#include <iostream>

void foodle(int &x);

int main(void)
{
  int a = 2;
  foodle (a);
  std::cout << "a = " << a << std::endl;
  return 0;
}

void foodle(int &x) // x becomes an alias for the actual param
{
   x = -x;

   std::cout << "x=" << x << std::endl;
}

