The function is called (or invoked, or executed) three times from main(). Each of the three
calls looks like this:
starline();
This is all we need to call the function: the function name, followed by parentheses. The syntax
of the call is very similar to that of the declaration, except that the return type is not used.
The call is terminated by a semicolon. Executing the call statement causes the function to execute;
that is, control is transferred to the function, the statements in the function definition
(which we’ll examine in a moment) are executed, and then control returns to the statement following
the function call.
No comments:
Post a Comment