Reference vs. Value
When a parameter is passed by value, the caller and callee have two independent variables with the same value. If the callee modifies the parameter variable, the effect is not visible to the caller. When a parameter is passed by reference, the caller and the callee use the same variable for the parameter. If the callee modifies the parameter... » read more