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.
Loading...
Related Quiz
- You're developing a text editor and need to implement a search feature. Which function could be useful to check if a certain word exists in a text?
- When using pointers in a C program, what does the 'dereferencing' operation do?
- How do you declare a two-dimensional array of integers with 3 rows and 4 columns?
- What is the return type of the fread function in C?
- When designing a data packet structure for network communication, using ________ can help to minimize the packet size.