47.6k views
3 votes
Given a two-dimensional array x of element type double, and two integer variables i and j, write an expression whose value is the i-th element in the j-th row.

1 Answer

2 votes

Answer:

The expression which represent the value is the i-th element of the j-th row is x[i][j].

Step-by-step explanation:

As given in the question that the array is two-dimensional array means that it stores the elements in the row and column format .In the given question i and j are two variable where i representing the row in the two-dimensional array and j represent the column in the two-dimensional array .

So the expression which represented the value of the i-th element of the j-th row is x[i][j].it means firstly it fetches all the row of the first column then soon.

User Mike Feng
by
7.2k points