"&" in the wrong spot for function overloading course in c++?

In the function overloading course, is the & at the wrong space here “min(const int& x, const int& y)”?

Type your question above this line.


Hi @Yuanhao_Zhang

I don’t think that the & used in the min() function parameter list under “Rules for choosing the right function” is wrongly placed.
The author of the course is trying to communicate how function overloading works in C++.
He explains that in C++, passing an argument to a function by value is no different from passing the same argument to the same function by reference (using & in parameter list).