For a given function, once you start providing default values for arguments from the right, you cannot skip providing default values for subsequent arguments on the ______.
- Left
- Middle
- None of the above
- Right
For a function with default argument values, you can only provide default values for arguments starting from the right and not in the middle or left. Skipping arguments without default values in the middle would lead to a compilation error.
Loading...
Related Quiz
- When defining a struct in C++, what does the compiler implicitly provide?
- Lucy wants to declare a function that can add two numbers but doesn't want to specify how it does it. What should she provide?
- If you want to test a condition and execute a single statement in case it's true, you can use an if statement without the ______ brackets.
- The _______ keyword is used to specify a class should not be instantiated directly, but only used as a base class.
- Which of the following C++ versions introduced the auto keyword for automatic type deduction?