When should you use a const reference parameter-03593
When should you use a const reference parameter?
This multiple choice question (MCQ) is related to the book/course vu cs301 Data Structures. It can also be found in vu cs301 Mid Term - Quiz No.8.
When should you use a const reference parameter?
Whenever the parameter has huge size
Whenever the parameter has huge size, the function changes the parameter within its body, and you do NOT want these changes to alter the actual argument
Whenever the parameter has huge size, the function changes the parameter within its body, and you DO want these changes to alter the actual argument
Whenever the parameter has huge size, and the function does not change the parameter within its body