Scalar (computing) - Parameters

Parameters

The formal parameters of functions are also referred to as variables. For instance, in this Python code segment,

def addtwo(x): return x + 2 addtwo(5) # yields 7

The variable named x is a parameter because it is given a value when the function is called. The integer 5 is the argument which gives x its value. In most languages, function parameters have local scope. This specific variable named x can only be referred to within the addtwo function (though of course other functions can also have variables called x).

Read more about this topic:  Scalar (computing)

Famous quotes containing the word parameters:

    Men have defined the parameters of every subject. All feminist arguments, however radical in intent or consequence, are with or against assertions or premises implicit in the male system, which is made credible or authentic by the power of men to name.
    Andrea Dworkin (b. 1946)

    What our children have to fear is not the cars on the highways of tomorrow but our own pleasure in calculating the most elegant parameters of their deaths.
    —J.G. (James Graham)