// File: ref5.C // // using references with const #include int add(const int &a, const int &b) { a = a + 1 ; return a + b ; } main() { int x = 3, y = 17, z = 0 ; cout << "Before: x = " << x << ", y = " << y << ", z = " << z << "\n" ; z = add(x,y) ; cout << "After: x = " << x << ", y = " << y << ", z = " << z << "\n" ; }