How many subscript used in two dimensional Array?
Answers
Answer:
two subscripts
Two-dimensional (2D) arrays are indexed by two subscripts, one for the row and one for the column. Each element in the 2D array must by the same type, either a primitive type or object type.
Answer:
Explanation:
Two subscripts are used in two dimensional Array.
What is subscript in array?
Mathcad may show the value of a specific array element by using an array subscript. It designates a single element in the array. Utilizing the [key], the array subscript is produced. The subscript operator is what is used in this situation.
What is the two-dimensional array's subscript?
A two-dimensional array with two subscripts can be thought of as a rectangular arrangement of elements; the first subscript refers to the row and the second to the column. For instance, the names of students in four classes are contained in the names array.
Two-dimensional (2D) arrays have an index that is made up of two subscripts—one for the row and one for the column. Either a primitive type or an object type, the items of the 2D array must all be of the same type.
Therefore, the correct answer is two.
#SPJ2