Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Parameter
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Computer programming== {{Main|Parameter (computer programming)}} In [[computer programming]], two notions of [[parameter (computer programming)|parameter]] are commonly used, and are referred to as [[Parameter (computer programming)#Parameters and arguments|parameters and arguments]]βor more formally as a '''formal parameter''' and an '''actual parameter'''. For example, in the definition of a function such as : y = ''f''(''x'') = ''x'' + 2, ''x'' is the ''formal parameter'' (the ''parameter'') of the defined function. When the function is evaluated for a given value, as in :''f''(3): or, ''y'' = ''f''(3) = 3 + 2 = 5, 3 is the ''actual parameter'' (the ''argument'') for evaluation by the defined function; it is a given value (actual value) that is substituted for the ''formal parameter'' of the defined function. (In casual usage the terms ''parameter'' and ''argument'' might inadvertently be interchanged, and thereby used incorrectly.) These concepts are discussed in a more precise way in [[functional programming]] and its foundational disciplines, [[lambda calculus]] and [[combinatory logic]]. Terminology varies between languages; some computer languages such as [[C (programming language)|C]] define parameter and argument as given here, while [[Eiffel (programming language)|Eiffel]] uses an [[Parameter (computer programming)#Alternative convention in Eiffel|alternative convention]].
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Parameter
(section)
Add topic