Login
Remember
Register
Ask a Question
What are the different types of array data structure?
0
votes
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
What are the different types of Array Data Structures?
dbms-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 9, 2023
by
DavidAnderson
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.
...