Flowgorithm

Flowgorithm Parallel Arrays

Flowgorithm Parallel Arrays

The parallel arrays technique uses multiple arrays to store related data so that corresponding elements in each array are related. Each array holds data for specific aspects or attributes of the related entity. This programming concept is particularly common in languages that lack data structures like structures, multi-dimensional arrays, etc.

Parallel Arrays

The Flowgorithm tool only supports single-dimensional arrays. To store related information, we can use multiple arrays in Flowgorithm.

  • All the arrays involved should have the same size.
  • We can use different data types for the arrays.

Example

For example, consider a scenario where you have information about students and their names. We can use two arrays to store the information related to each student. The subscript of each array stores the related information in the two arrays.

Consider that the two arrays are names and age

names[i] and age[i] hold information of the same student.

 

Parallel Arrays Flowgorithm

 

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website: