Course Content
Software Models
Software Models
0/1
Flowgorithm In-built Functions
Flowgorithm In-built Functions
0/1
Flowgorithm Call Symbol
Flowgorithm Call Symbol
0/1
Flowgorithm User-Defined Functions
Flowgorithm User-Defined Functions
0/3
Flowgorithm Recursion
Flowgorithm Recursion
0/1
Flowgorithm Turtle Graphics
Flowgorithm Turtle Graphics
0/2
Popular Programming Languages
Popular Programming Languages
0/1
Flowgorithm Expert

Flowgorithm Call Statement

The Call statement allows the programmer to invoke functions.

Call Statement

A call statement is a control statement. It transfers the control to a function or a procedure. To convey information about the function or procedure, the parameters associated with the function or procedure are used. We can pass the arguments using either the pass-by-value mode or the pass-by-reference mode.

 

Flowgorithm Call Statement

 

Example

We need to define the function/procedure before using it in the Call statement. Let’s define a function named Add that takes two integer arguments and prints the sum of the two numbers. We will use the Call statement to invoke the function from the Main flowchart.

Define a new function.

Define Function Flowgorithm Call Statement

 

Add the function code. The function logic is defined here.

 

Add Function body Call Statement

In the Main flowchart, we will add a Call statement to invoke the function. Add the Call symbol ad click on the symbol to invoke the function. Enter the function name and the function arguments.

 

Call Statement Main Flowchart

 

That’s it. We have successfully added the Call statement to invoke another function in the flowchart.

 

Sample Call Statement Flowgorithm Flowchart