I was given some code in which some of the parameters are pointers, and then the pointers are dereferenced
to provide values. I was concerned that the pointer dereferencing wou
My rule of thumb is to pass by pointer if the parameter can be NULL, ie optional in the cases above, and reference if the parameter should never be NULL.