Advertisements
Advertisements
प्रश्न
Define the following with its construct:
Double Dimensional Array
संक्षेप में उत्तर
परिभाषा
उत्तर
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [पृष्ठ २३९]