Parameter

In computer programming, a parameter or "argument" is a value that is passed into a function. Most modern programming languages allow functions to have multiple parameters. While the syntax of a function declaration varies between programming languages, a typical function with two parameters may look something like this:

function graphXY(x, y)
{
  ...
}

When this function is called within a program, two variables should be passed into the function. It may look something like this:

$horizontal = 22;
$vertical = 40;
graphXY($horizontal, $vertical);

In this example, the values 22 and 40 (stored in the variables $horizontal and $vertical respectively) are the "input parameters" passed into the graphXY() function.

When a function has input parameters, the output of the function is often affected by the values that are passed into the function. Therefore, a single function can be called multiple times within a program and produce different output each time.

Updated August 7, 2014 by Per C.

quizTest Your Knowledge

A caption that appears when you hover your mouse over a button is called what?

A
Legend
0%
B
Window
0%
C
Tooltip
0%
D
Prompt
0%
Correct! Incorrect!     View the Tooltip definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Parameter on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation bar directly below the definition.

Our goal to explain computer terminology in a way that is easy to understand. We strive for accuracy and simplicity with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

TechTerms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.