Site icon TestingDocs.com

Flowgorithm Array Types

Overview

In this tutorial, we will learn about Flowgorithm Array Types. In general, Arrays are classified based on their dimensions. For example,

Flowgorithm only directly supports only one-dimensional array as of now.

Single Dimensional Array

Single dimensional arrays have only one dimension either a row or a column. The fruits array is an example of a single-dimensional array. We can refer to the single-dimensional array as a 1D array in short form. We need only one index to refer to the array element.

Two-Dimensional Array

Two-dimensional arrays have both rows and columns. A chessboard is an example of a two-dimensional array. We can refer to the two-dimensional array as a 2D Array in short form. We need two index variables to refer to each array element. One index for the row and another for the column.

For example:
Each square can be thought of as an array element and can be referred to as

board[i][j]

i is the index for the row and j is the index for the column.

In Chess game terminology, the row is called rank and the column is called a file on a chessboard.

A normal Chessboard with 8 rows and 8 columns.

 

Note that: 2D Array support is not directly available in Flowgorithm. For example, we cannot represent the two-dimensional array as arr[3,3].

Flowgorithm Arrays

We can also classify Flowgorithm Arrays based on the data types of the elements. Flowgorithm supports

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

Flowgorithm Website

For more information on the Flowgorithm tool, please visit the official website at:

http://flowgorithm.org/

Exit mobile version