Here is a listing of C++ questions and puzzles on “Default Arguments” along with answers, explanations and/or solutions: 1. If the user didn’t supply the value, what value will it take?
A. default value
B. rise an error
C. both a & b
D. none of the mentioned
Answer:A
Here is a listing of C++ questions and puzzles on “Default Arguments” along with answers, explanations and/or solutions: 1. If the user didn’t supply the value, what value will it take?
A. default value B. rise an error C. both a & b D. none of the mentioned
Explanation:If the user didn’t supply the value means, the compiler will take the given value in the argument list. 2. Where can the default parameter be placed by the user?