Vidyalelo
C++ Programming · Q40

Functions and Procedures in C++

Programming · C++ Programming · question 40

Q40

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
Answer
D.
Specifies that the parameter should be initialized

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board