C++ MQCs with Explanation (CHAPTER 4: FUNCTIONS IN C++)

Which of the following statements is true in respect of a function containing const arguments?

  1. The function cannot return a value
  2. const should be used for the argument passed by reference
  3. const argument cannot be used in any expression.
  4. The function cannot change the value of const arguments



Answer: 
Option d: The function cannot change the value of const arguments

Explanation Here

Post a Comment

0 Comments