×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Which of the following condition is correct for the default arguments?

71. Which of the following condition is correct for the default arguments?

  1. Default arguments must be the last arguments in the function declaration.
  2. Default arguments must be the first argument in the function declaration.
  3. Default arguments can be declared anywhere in the function declaration.
  4. None of the above

Answer: A) Default arguments must be the last arguments in the function declaration.

Explanation:

In C++, we can create functions with default arguments. The default arguments must be the last argument in the function declaration.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.