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.
Loading...
Related Quiz
- The #undef directive is used to ________ a macro defined by #define.
- To check for errors during file operations, you can use the ______ function.
- Which operator is used to check if two values are equal?
- In a program that processes large volumes of numerical data, which file format would be more efficient in terms of storage space and data retrieval speed?
- What does a nested structure in C allow you to do?