Object Oriented Programming20755 marksFunctions
What is the principle reason for using default arguments in the function? Explain how missing arguments and default arguments are handled by the function simultaneously?
What is the principle reason for using default arguments in the function? Explain how missing arguments and default arguments are handled by the function simultaneously? [5]
The principal reason for using default arguments in a function is to make function calls more flexible and convenient. A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the caller of the function does not provide a value for that ar...