Return StatementsStatementsAssignmentFunction Calls

Function Calls

< call statement > -> < identifier > ( <actual list >)
| < identifier > ( )
< actual list > -> < actual list > , < expression >
| < expression >

The number of actual parameter expressions included in a call statement must match the number of formal parameters declared in the function's definition. The type of each actual parameter expression must match the type of the corresponding formal. If any of the called function's formal parameters are specified as call-by-reference parameters, then the corresponding actual parameters must actually be variables as defined in section *.


Computer Science 434
Department of Computer Science
Williams College

Return StatementsStatementsAssignmentFunction Calls