Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 671 Bytes

default_arguments.md

File metadata and controls

9 lines (5 loc) · 671 Bytes

Default arguments

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 (this is the case in the C programming language). Later languages (for example, in C++) allow the programmer to specify default arguments that always have a value, even if one is not specified when calling the function.1


[1] Default argument, Wikipedia. (2019). https://en.wikipedia.org/w/index.php?title=Default_argument&oldid=927101957 (accessed March 10, 2020).