Anonymous
public text v1 · immutablee) void figure(int, int &);
int main()
{
int first = 1;
int last = 25;
cout<<"first is: "<<first<<endl
<<"last is: "<<last<<endl;
figure(first,last);
cout<<"first is: "<<first<<endl
<<"last is: "<<last<<endl;
}
void figure(int a, int & b)
{
cout<<"IN FUNCTION: "<<a<<' '<<b<<endl;
a++;
b = a + b;
cout<<"IN FUNCTION: "<<a<<' '<<b<<endl;
}