If my teachings were correct, it doesn't make too much difference whether or not it's by reference, since a pointer is basically an int. I was taught that with smaller-sized data, passing by reference is actually a little bit slower because the compiler has to do some pointer math or keep an extra table or something. I'm fuzzy on the exact details, though.
|