- This wiki is out of date, use the continuation of this wiki instead
Argument
From FenixWiki
(Difference between revisions)
Revision as of 10:49, 1 March 2008 (edit) Sandman (Talk | contribs) (New page: == Definition == An argument is the value passed on when calling a function or process. The variable and its value inside the definition of a function or process i...) ← Previous diff |
Current revision (11:14, 9 August 2008) (edit) (undo) Sandman (Talk | contribs) |
||
Line 5: | Line 5: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
+ | Function int my_proc( int parameter ) | ||
+ | Begin | ||
+ | //statements | ||
+ | return 0; | ||
+ | End | ||
+ | |||
+ | Process Main() | ||
Private | Private | ||
int argument = 3; | int argument = 3; | ||
Begin | Begin | ||
my_proc( argument ); | my_proc( argument ); | ||
- | + | my_proc( 4); | |
- | + | ||
- | + | ||
- | + | ||
End | End | ||
</pre> | </pre> | ||
+ | Used in example: [[Function]], [[Process]] | ||
[[Category:General]] | [[Category:General]] |
Current revision
[edit] Definition
An argument is the value passed on when calling a function or process. The variable and its value inside the definition of a function or process is called a parameter.
[edit] Example
Function int my_proc( int parameter ) Begin //statements return 0; End Process Main() Private int argument = 3; Begin my_proc( argument ); my_proc( 4); End