Explain default argument.
Answers
Answered by
2
Answer:
A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the caller of the function doesn't provide a value for the argument with a default value.
Answered by
1
Default argument is a value provided in a function which is automatically assigned by the compiler and if the caller of the function doesn't able to provide a value for the argument with a default value.
1.The default arguments are used in c++
2. when the user does not provide any arguments then only the default arguments are used.
3 default arguments are used during the process of compilation of program.
4. Sometimes default arguments are used in the place of missing trailing in a function call in c++
Similar questions
Math,
5 months ago
Math,
5 months ago
Chemistry,
5 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
English,
1 year ago