Calling a Function
Learn how to call your function in a program.
We'll cover the following...
Introduction
The functions created in a program are not executed until we call them. When we call the function, control is given to the very first statement inside the called function. The basic syntax for calling a function is given below:
To call a function in a program, we have to write a function name, followed by values of arguments in the round brackets and the semicolon.
📝 We can call a function from any other function in a program.
Example program
Consider the blender example given in this lesson. Let’s declare, define, and call a function ...