Computer Science, asked by jasmeet1876, 1 year ago

Explain default argument.

Answers

Answered by jenisdesai
2

Answer:

A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the caller of the function doesn't provide a value for the argument with a default value.

Answered by DeenaMathew
1

Default argument is a value provided in a function which is automatically assigned by the compiler and if the caller of the function doesn't able to provide a value for the argument with a default value.

1.The default arguments are used in c++

2. when the user does not provide any arguments then only the default arguments are used.

3 default arguments are used during the process of compilation of program.

4. Sometimes default arguments are used in the place of missing trailing in a function call in c++

Similar questions