One of the disadvantages of pass by reference is that the called function may inadvertently corrupt the caller's data. This can be avoided by
Show answerHide answer
Correct answer: (B) Declaring the formal parameters constant
Explanation
Declaring the formal (reference) parameters as const lets the function read the caller's data without being able to modify it.