Multidimensional Arrays
Learn about multidimensional arrays that are very useful for solving programming problems.
We'll cover the following...
We'll cover the following...
C provides support for multidimensional arrays. Here is how we can define a two-dimensional array of integers, initialize values, and index into it to read off values:
We can think of this array as a matrix or a table with two rows and two columns:
- The first row contains the values 1 and 2 (in the cells