// File: ref2.C // // using references #include void add3(int &a) { a = a + 3 ; } main() { int x = 3 ; cout << "Before: x = " << x << "\n" ; add3(x) ; cout << "After: x = " << x << "\n" ; }