"const T &arg" vs. "T arg"

Viewed 7388

Which of the following examples is the better way of declaring the following function and why?

void myFunction (const int &myArgument);

or

void myFunction (int myArgument);
14 Answers
Related