Call a function: Difference between revisions

m
Cleaned up the prose of the task description.
m (Cleaned up the prose of the task description.)
Line 1:
{{draft task}}[[Category:Functions and subroutines]]
The task is to demonstrate the different syntax and semantics that the language may provideprovided for calling a function. This may include:
* Calling a function that requires no arguments
* Calling a function with a fixed number of arguments
* Calling a function that utilizeswith optional arguments
* Calling a function with a variable number of arguments (varargs)
* Calling a function with named arguments
* Using a function in statement context
* Using a function in first -class context within an expression
* Obtaining the return value of a function
* DemonstratingDistinguishing any differences that apply to calling builtinbuilt-in functions rather thanand user -defined functions
* Demonstrating differences between callingDistinguishing subroutines and functions, if these are separate cases within the language.
* StateStating whether arguments are passed by value or by reference
 
Note thisThis task is about methods of calling functions, ''not'' methods ofabout [[Function definition|defining functions]], which is a separate topic.
 
=={{header|Ada}}==
845

edits