I'm new to C++ and have looked around for the answer to this seemingly simple question but can't seem to find it. Can someone please explain to me the difference between a function that looks like "funct( const type *& var )" and and one that looks like "funct( const type *var)" ?
I know the first one is a pass by constant reference, but I'm not sure what const means in the second one. I thought you needed the "&" to make it a pass by reference, so without what does that make the second one? I appreciate your answers.