23.9k views
1 vote
Choose the term described. : a value that can be passed to a function

User MofX
by
7.2k points

1 Answer

3 votes

Answer:

Parameter.

Step-by-step explanation:

Parameter can be defined as a value that can be passed to a function. This value can be passed to a function either by reference or by value.

This ultimately implies that, parameter variable stores information which is passed from the location of the method call directly to the method that is called by the program.

Basically, parameters can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function.

Hence, when you create classes or variables in a function, you can can set the values for their parameters.

For example, to pass a class to a family of classes use the code;

\\parameter Name as Type (Keywords) = value;

\\procedure XorSwap (var a,b :integer) = "myvalue"

User Sapan Prajapati
by
7.1k points