•[main.C]
#include
<iostream>
using namespace std;
int main(int argc, char
**argv) {
int foo = 10;
int&
bar = foo;
bar += 10;
cout
<< "foo is: " << foo << endl;
cout
<< "bar is: " << bar << endl;
foo =
5;
cout << "foo is: %d\n" << foo
<< endl;
cout << "bar is: %d\n"
<< bar << endl;
}