w#include
<iostream.h>
wvoid times2(int
&x); // function
prototype
wvoid main() {
w int var; // declare var as integer variable
w var = 10; // put value of 10 in var
w cout << "var is "
<< var << endl;
w times2(var); // call 'times2()' with var as parameter
w cout << "var is now
" << var << endl;
w}
wvoid times2(int
&x) { x = x * 2; }