Unit 1 lesson 2.2 Flashcards
(6 cards)
Argument
The actual value or data you pass to a function or subprogram when you call it.
Parameter
A variable in a function or subprogram definition that acts as a placeholder for the value (argument) you pass when you call the function.
Parameter list
A set of parameters defined in a function or subprogram specifying the number and types of inputs the function can accept.
Reference parameter
A type of parameter that allows a function to modify the actual variable passed to it.
Subprogram (Function)
A general term for a block of code that performs a specific task and can be reused.
Value parameter
A type of parameter that passes a copy of the argument’s value to the function.