Next: , Previous: , Up: Expressions   [Contents][Index]


12.2.6.7 Function Calls

A function is a name for a particular sequence of statements. It is defined using special definition syntax (see Function Definitions). Normally a function return some value. The way to use this value in an expression is with a function call expression, which consists of the function name followed by a comma-separated list of arguments in parentheses. The arguments are expressions which provide values for the function call environment (see Positional Parameters. When there is more than one argument, they are separated by commas. If there are no arguments, write just ‘()’ after the function name. Here are some examples:

foo()             no arguments
bar(1)            one argument
bar(1, "string")  two arguments