In a two-dimensional array declared as int arr[5][10];, the expression arr[i][j] refers to the ________ element in memory.

  • i-th column, j-th row
  • i-th row, j-th column
  • j-th column, i-th row
  • j-th row, i-th column
In a two-dimensional array, the first index corresponds to rows, and the second index corresponds to columns. So, arr[i][j] refers to the element at the i-th row and j-th column.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *