2082 4

Object Oriented Programming20825 marksDefault arguments

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

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

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

Up nextWhat is the use of this pointer? Write a program to demonstrate it.