Machine-translated by Google. Questions are authored in English.
Top

Discussion

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

  • A.sixth row
  • B.Fifth row
  • C.fifth column
  • D.sixth column

Answer: A

Correct answer: sixth row

arr is an array of rows, so arr[5] is the row at index 5 - the sixth row, since indexing starts at 0. It has type int[12] and decays to a pointer to that row’s first element. The column count never enters into which row is selected.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.