Control of the program cannot be transferred
to user-defined function (function declaration) unless it is called (invoked).
Syntax of Function Call
function_name(argument(1),….argument(n));
In this above example, function call is made
using statement “add(num1, num2);” in line 8. This makes control of program
transferred to function declarator(line 12). In line 8, the value retuned by
function is kept into “sum” which you will study in detail in function return
type of this chapter.
No comments:
Post a Comment