That would be my guess. Did you try it? What did you intend this code to do? (Or, if you got it from someone/somewhere else, what do you think it's supposed to do?)
Originally Posted by smitsky
Heres an example of what you could try to do to track it down yourself:
cout<< is a wonderful debugging tool.
int fn(int x, int y)
cout << "before calling fn(" << x-y << ", " << y << ")" << endl;
retval = fn(x-y,y);
cout << " returning from fn(), with retval = " << retval << endl;