Pointer sign on Function

Why would you.. put a pointer sign on a function..

For example..


int *Function( int, int);

same for reference.. why would you put a reference sign on a function.. example..

int *Function( int, int)
So that you can return a pointer or a reference...?
Ohh ok..

But why would you want to return a pointer or reference..
Return a pointer? A pointer to a c-string, of course.
Return a reference? Operator [] functions for things like map and vector.
Topic archived. No new replies allowed.