Anonymous user
Call a function: Difference between revisions
m
→{{header|AWK}}
m (→{{header|AWK}}) |
m (→{{header|AWK}}) |
||
Line 109:
<lang awk>BEGIN {
sayhello() # Call a function with no parameters in statement context
b=squareit(3) # Obtain the return value from a function with a single parameter in
}</lang>
In awk, scalar values are passed by value, but arrays are passed by reference.
The awk extraction and reporting language does not support the use of named parameters.
=={{header|C}}==
|