Object Oriented Programming20795 marksDefault arguments
In which case default argument is used? Describe with an example.
In which case default argument is used? Describe with an example. [5]
A default argument is used when a function is called without providing a value for one or more parameters. If the caller omits an argument, the compiler automatically substitutes the default value specified in the function declaration/definition. 1. When a function parameter has a commonly used v...