Computer Science, asked by pushpendrakumarjiwan, 1 month ago

while accessing elements of a multi-dimensional array, each index is ;
a) separated by a comma and surrounded by brackets
b) surrounded by square brackets
c)separated by brackets and surrounded by commas
d) surrounded by commas​

Answers

Answered by ritiksaini1323
2

Answer:

A 2D array has a type such as int[][] or String[][], with two pairs of square brackets. The elements of a 2D array are arranged in rows and columns, and the new operator for 2D arrays specifies both the number of rows and the number of columns. For example, int[][] A; A = new int[3][4];

Similar questions