2079 5

BIT153 ยท 2079 ยท 5 marks

In which case default argument is used? Describe with an example.

In which case default argument is used? Describe with an example. [5]

Object Oriented ProgrammingChapter 5: Function Features and Inline FunctionsDefault arguments

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...