2082 4

BIT153 ยท 2082 ยท 5 marks

Explain default arguments and inline functions in C++ with suitable examples.

Explain default arguments and inline functions in C++ with suitable examples. [5]

Object Oriented ProgrammingChapter 5: Function Features and Inline FunctionsDefault arguments

--- Definition: Default arguments are values provided in a function declaration that are automatically used when the caller does not supply a corresponding argument. They allow a function to be called with fewer arguments than it is defined to accept. Rules: - Default arguments must be specified ...