Subprograms Flashcards
(6 cards)
What is an argument?
The actual value or data you pass to a function or subprogram when you call it.
What is a 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.
What is a parameter list?
A set of parameters defined in a function or subprogram specifying the number and types of inputs the function can accept.
What is a reference parameter?
A type of parameter that allows a function to modify the actual variable passed to it.
What is a subprogram (function)?
A general term for a block of code that performs a specific task and can be reused.
What is a value parameter?
A type of parameter that passes a copy of the argument’s value to the function.