- This wiki is out of date, use the continuation of this wiki instead
Parameter
From FenixWiki
(Difference between revisions)
Revision as of 10:40, 23 March 2007 (edit) FCR (Talk | contribs) ← Previous diff |
Revision as of 23:49, 25 March 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
- | A parameter is the value inside the definition of a [[function]] or a [[process]] that is received from the calling environment. The value passed on when calling the function or process is called an argument. | + | == Definition == |
+ | |||
+ | A parameter is the [[value]] inside the definition of a [[function]] or a [[process]] that is received from the [[call|calling]] environment. The value passed on when [[call|calling]] the [[function]] or [[process]] is called an [[argument]]. | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
- | + | Private | |
- | + | int argument = 3; | |
- | + | Begin | |
- | + | my_proc( argument ); | |
- | + | End | |
- | + | Process my_proc( int parameter ) | |
- | + | Begin | |
//statements | //statements | ||
- | + | End | |
</pre> | </pre> |
Revision as of 23:49, 25 March 2007
Definition
A parameter is the value inside the definition of a function or a process that is received from the calling environment. The value passed on when calling the function or process is called an argument.
Example
Private int argument = 3; Begin my_proc( argument ); End Process my_proc( int parameter ) Begin //statements End