Advertisements
Advertisements
Question
Define the following with its construct:
Double Dimensional Array
Answer in Brief
Definition
Solution
- The X and Y axes represent a double-dimensional array, with the X axis representing the number of rows and the Y axis representing the number of columns.
- A double-dimensional array, commonly known as a double-subscripted variable, uses two types of subscripts. (One for each row and column). In a double-dimensional array, cells can be accessed using row and column numbers.
- Example: int m[][] = new int[3][4]; // 3 rows and 4 columns
shaalaa.com
Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [Page 239]