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

Data Structures

An array is a data structure that contains a collection of items. The items stored in an array should be of the same data type. For example, an array that holds Integers can only store whole numbers. Using Arrays, we can store, search, sort, or retrieve data efficiently.

Array Dimension

Array dimension refers to the number of indices needed to access an individual element in the array. Arrays can have one or more dimensions. Flowgorithm only supports one-dimensional arrays. You need only one index to access each component of the 1-D array.

Example

Integer Array numbers[5]

This is the array declaration in the flowchart. It denotes and tells the flowchart interpreter about the array.

The array variable name is numbers.

The array can hold integers, and its size is within the square brackets. The array size is the maximum number of elements that it can store. In this example, the array size is 5. We cannot store more than five elements in this array, which will lead to an error.

 

 

One Dimensional Array Flowchart