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
Computer Science,
2 months ago
Geography,
2 months ago
Hindi,
2 months ago
English,
4 months ago
Math,
4 months ago
English,
10 months ago
Computer Science,
10 months ago
Social Sciences,
10 months ago