SOURCE FILE: exercise_p271.cpp



/*
    What is the output of this program?
*/

#include <iostream>
using namespace std ;

void figure_me_out (int & x, int y, int & z ) ;

int main (void)
{
  int a, b, c ;
  a = 10 ;
  b = 20 ;
  c = 30 ;
  figure_me_out (a,b,c)  ;
  cout << a << " " << b << " " << c << endl ;
  return 0 ;
}

void figure_me_out (int & x, int y, int & z )
{
   cout << x << " " << y << " " << z << endl ;
   x = 1;
   y = 2 ;
   z = 3 ;
   cout << x << " " << y << " " << z << endl ;
}