Learn how to declare, initialize, and use multi-dimensional arrays.

We'll cover the following

In C programming, you can create a multi-dimensional array, also known as a matrix. Multi-dimensional arrays are a type of arrays that can be visualized as a table of rows and columns. For example:

//array declaration
int arr[3][4];
// array initialization
int arr[3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12};

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.