file stream pointers

I would just like to know is doing this:
void foo(ifstream fin);

less efficient than this:
void foo(ifstream *fin);
I believe the second is probably more efficient, since the first isn't legal.

Perhaps you meant:

void foo(ifstream & fin);

in which case the "efficiency" is equivalent.
yeah i think thats true.

Topic archived. No new replies allowed.