//  File: ref2.C
//  
//  using references

#include <iostream.h>

void add3(int &a) {
   a = a + 3 ;
}

main() {
   int x = 3 ;

   cout << "Before: x = " << x << "\n" ; 
   add3(x) ;
   cout << "After: x = " << x << "\n" ; 
}
