staticint e = 0;
int main(){
int foo (int m, int & n);
int b;
b = 1;
int x;
for (int i = 0; i < 3; i++){
x = foo(b + 2, b);
cout << x << "_" << b << "_";
};
cout << endl;
return 0;
}
int foo (int x, int & y){
e++;
y = e;
return(x);
}
It's a pretty confusing example, agreed, and it was a multi-part question asking me to underline/box/etc, where the formal arguments were, the formal parameters, and so on. But the last portion asked about the output, and i'm still lost as to how it got the values it says it did, even after setting break-points to read it. If you could express in words, maybe it'd be clearer because i'm still a bit lost.