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 [पृष्ठ २३९]