Computer Science, asked by abrahamchristin024, 7 days ago

Define the following with their constructs:
(a) Single Dimensional Array

(b) Double Dimensional Array

Answers

Answered by gbhattad
0

Answer:

a)An array can be of any type, For example: int , float , char etc. ... The number of subscript or index determines the dimensions of the array. An array of one dimension is known as a one-dimensional array or 1-D array, while an array of two dimensions is known as a two-dimensional array or 2-D array.

b)Two dimensional array is an array within an array. It is an array of arrays. In this type of array the position of an data element is referred by two indices instead of one. So it represents a table with rows an dcolumns of data.

plz mark me as u know

Answered by srishanth30
2

a) Single Dimensional Array:- A one-dimensional array (or single dimension array) is a type of linear array. Accessing its elements involves a single subscript which can either represent a row or column index. ... Here, the array can store ten elements of type int . This array has indices starting from zero through nine.

b) Double Dimensional Array:- The two-dimensional array can be defined as an array of arrays. The 2D array is organized as matrices which can be represented as the collection of rows and columns. However, 2D arrays are created to implement a relational database lookalike data structure.

PLEASE MARK ME AS A BRAINLIEST AND FOLLOW ME PLEASE

Similar questions