0 votes
in DBMS by
What are the different types of Array Data Structures?

1 Answer

0 votes
by

There are several different types of arrays:

  • One-dimensional array: A one-dimensional array stores its elements in contiguous memory locations, accessing them using a single index value. It is a linear data structure holding all the elements in a sequence.

 

  • Two-dimensional array: A two-dimensional array is a tabular array that includes rows and columns and stores data. An M × N two-dimensional array is created by grouping M rows and N columns into N columns and rows.

 

  • Three-dimensional array: A three-dimensional array is a grid that has rows, columns, and depth as a third dimension. It comprises a cube with rows, columns, and depth as a third dimension. The three-dimensional array has three subscripts for a position in a particular row, column, and depth. Depth (dimension or layer) is the first index, row index is the second index, and column index is the third index.

Related questions

0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
...