RosettaCodeData/Task/Function-prototype/00DESCRIPTION

19 lines
994 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
Some languages provide the facility to declare functions and subroutines through the use of [[wp:Function prototype|function prototyping]].
;Task:
Demonstrate the methods available for declaring prototypes within the language. The provided solutions should include:
2013-04-10 21:29:02 -07:00
* An explanation of any placement restrictions for prototype declarations
* A prototype declaration for a function that does not require arguments
* A prototype declaration for a function that requires two arguments
* A prototype declaration for a function that utilizes varargs
* A prototype declaration for a function that utilizes optional arguments
* A prototype declaration for a function that utilizes named parameters
* Example of prototype declarations for subroutines or procedures (if these differ from functions)
* An explanation and example of any special forms of prototyping not covered by the above
2016-12-05 22:15:40 +01:00
<br>
2013-04-10 21:29:02 -07:00
Languages that do not provide function prototyping facilities should be omitted from this task.
2016-12-05 22:15:40 +01:00
<br><br>