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,
1 month ago
Physics,
1 month ago
English,
3 months ago
Math,
3 months ago
English,
8 months ago
Computer Science,
8 months ago
Social Sciences,
8 months ago