What are default arguments?
Answers
Answered by
2
Hey
mate
ans-In computer programming, a default argument is an argument to a function that a programmer is not required to specify. In most programming languages, functions may take one or more arguments. Usually, each argument must be specified in full.
cheers
Answered by
1
Hey !
C++ allows us to assign default values to a function’s parameters which are useful in case a matching argument is not passed in the function call statement. The default values are specified at the time of function declaration.
C++ allows us to assign default values to a function’s parameters which are useful in case a matching argument is not passed in the function call statement. The default values are specified at the time of function declaration.
Similar questions