Computer Science, asked by sarannpl2001, 10 months ago

6
If arr is a two dimensional array of 10 rows and 12 columns, then arr (5) logically points to the
✓ Marks: 1
* Negative Marks: 0
sixth row
Fifth row
fifth column
sixth column
<< Previous
34:00​

Answers

Answered by aryanverma17944
0

Answer:

6 row

Explanation:

as array start from 0 so upto there it reach to 6 row

Answered by BrainlyYoda
1

If arr is a two-dimensional array of 10 rows and 12 columns, then arr[5] logically points to the sixth row

Explanation

In array, the indexing starts from 0

Suppose we have an array such as

numbers = [1, 2, 3]

Now, we know that there are three elements present in the array. The indexing of the array starts from 0 which means

numbers[0] = 1

numbers[1] = 2

numbers[2] = 3

Array

An array is a type of data structure that stores a collection of elements in which each element has an array index. It stores elements of the same data type.

int[4]

In this int is a data type or you can say it is an integer.

This 4 represents the size of the array.

Two-dimensional array

A two-dimensional array can also be said an array of arrays and is generally organized in the form of tables or matrices.

A two-dimensional array specifies both the number of rows and the number of columns.

int[3][4]

In this int is a data type or you can say it is an integer.

The number of rows(size of 1st array) is 3 and the number of columns is 4(size of 2nd array)

In the question, it was mentioned arr[5] and we know indexing starts from 0 so, it is the 6th row.

Similar questions