How is data stored in a two-dimensional array in memory?

  • In reverse order
  • Randomly, without any order
  • Sequentially, row by row
  • Vertically, column by column
In a two-dimensional array, data is stored sequentially, row by row. Each row is contiguous in memory, and elements are stored in the order they appear in the row.
Add your answer
Loading...

Leave a comment

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