Yeah, int& is passing an int by reference - normally only done when you explicitly want to change the caller's value of the parameter from inside the function (as is being done with the points parameter).