Home »
MCQs »
C++ MCQs
Which of the following statement is correct about Default arguments (1)?
76. Which of the following statement is correct about Default arguments?
- Default arguments are allowed in the argument list of the function declaration.
- Default arguments are allowed in the return type of the function declaration.
- Default arguments are allowed with the class name definition.
- Default arguments are allowed with floating-point type values.
Answer: A) Default arguments are allowed in the argument list of the function declaration.
Explanation:
Default arguments are allowed in the argument list of the function declaration.