Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming Quiz 183 – Which of the following statement is incorrect?

Question: Which of the following statement is incorrect?
[A]. The default value for an argument can be a global constant.
[B]. The default arguments are given in the function prototype.[C]. Compiler uses the prototype information to build a call, not the function definition.
[D]. The default arguments are given in the function prototype and should be repeated in the function definition.

Answer: Option D