explain function with default argument with example in detail
Answers
Answered by
5
Explanation:
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. Following is a simple C++ example to demonstrate the use of default arguments.
Similar questions
Math,
3 months ago
Chinese,
3 months ago
Math,
3 months ago
English,
6 months ago
Math,
6 months ago
English,
1 year ago
Computer Science,
1 year ago
Social Sciences,
1 year ago