A C++ newbie question: I found the following function:
int &min(int &x, int &y)
{ return x < y ? x : y; }
I am confused of the usage of “&”.
Is that possible to re-write the above function as
int &min(int x, int y)
{ return x < y ? x : y; }
Or
int min(int &x, int & y)
{ return x < y ? x : y; }