Printer Friendly
The Free Dictionary
904,903,574 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

argument

   Also found in: Dictionary/thesaurus, Legal, Acronyms, Idioms, Wikipedia, Hutchinson 0.07 sec.

In programming, a value that is passed between programs, subroutines or functions. Arguments are independent items, or variables, that contain data or codes. When an argument is used to customize a program for a user, it is typically called a "parameter." See argc.


(programming)argument - (Or "arg") A value or reference passed to a function, procedure, subroutine, command or program, by the caller. For example, in the function definition

square(x) = x * x

x is the formal argument or "parameter", and in the call

y = square(3+4)

3+4 is the actual argument. This will execute the function square with x having the value 7 and return the result 49.

There are many different conventions for passing arguments to functions and procedures including call-by-value, call-by-name, call-by-reference, call-by-need. These affect whether the value of the argument is computed by the caller or the callee (the function) and whether the callee can modify the value of the argument as seen by the caller (if it is a variable).

Arguments to functions are usually, following mathematical notation, written in parentheses after the function name, separated by commas (but see curried function). Arguments to a program are usually given after the command name, separated by spaces, e.g.:

cat myfile yourfile hisfile

Here "cat" is the command and "myfile", "yourfile", and "hisfile" are the arguments.

?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in classic literature
 
Though he did not drink himself, with a politeness of which Philip recognised the irony, he put a couple of bottles of beer at Hayward's elbow, and he insisted on lighting matches whenever in the heat of argument Hayward's pipe went out.
Shall I return to your old argument about the opinions of men?
After a good deal of fruitless argument the question was referred for decision to a passing Coyote, who was a bit of a demagogue and desirous to stand well with both.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2008 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.