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.