Examveda

What is the purpose of the 'const' keyword in a function parameter list in C++?

A. Declares the parameter as constant within the function

B. Prevents the parameter from being passed by reference

C. Indicates that the parameter value cannot be changed within the function

D. Specifies that the parameter should be initialized

Answer: Option C


Join The Discussion

Related Questions on Functions and Procedures in C plus plus