Computer Science, asked by ajeeb7878, 11 months ago

Explain dimensions of arrays with syntax and programme

Answers

Answered by itzBrainlyBoy
1

Answer:

The basic form of declaring a two-dimensional array of size x, y: Syntax: data_type array_name[x][y]; data_type: Type of data to be stored. ... A two – dimensional array can be seen as a table with 'x' rows and 'y' columns where the row number ranges from 0 to (x-1) and column number ranges from 0 to (y-1).

Answered by Anonymous
1

Answer:

Two-dimensional Arrays. ... 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.A one-dimensional array (or single dimension array) is a type of linear array. Accessing its elements involves a single subscript which can either represent a row or column index.

I hope this will help

plz mark brainliest

Similar questions