Home »
MCQs »
C++ MCQs
Which of the following statement is correct about default arguments?
70. Which of the following statement is correct about default arguments?
- Arguments that cannot be passed to the function
- Arguments with a default value that is not mandatory to be passed into the function
- Arguments that always take the same data value
- None of the above
Answer: B) Arguments with a default value that is not mandatory to be passed into the function
Explanation:
In C++, we can create functions with default arguments. The default arguments are used with a default value that is not mandatory to be passed into the function.