# Array and Matrix programming exercises and solutions in C

Array is a linear data structure that hold finite sequential collection of homogeneous data. We can store a collection of values in an array.

Array uses an integer value index to access a specific element. Index starts from 0 and goes till `N-1` (where N is the size of array).

Arrays are divided in two categories.

• One-dimensional array
• Multi-dimensional array

In this exercise we will focus on one-dimensional and multi-dimensional array. We will learn to implement and use arrays in programming.

Always feel free to drop your queries and suggestions down in the comments section. I always love to hear from Codeforwin lovers.

## List of array and matrix programming exercises

### List of matrix programming exercises

1. Write a C program to add two matrices.
2. Write a C program to subtract two matrices.
3. Write a C program to perform Scalar matrix multiplication.
4. Write a C program to multiply two matrices.
5. Write a C program to check whether two matrices are equal or not.
6. Write a C program to find sum of main diagonal elements of a matrix.
7. Write a C program to find sum of minor diagonal elements of a matrix.
8. Write a C program to find sum of each row and column of a matrix.
9. Write a C program to interchange diagonals of a matrix.
10. Write a C program to find upper triangular matrix.
11. Write a C program to find lower triangular matrix.
12. Write a C program to find sum of upper triangular matrix.
13. Write a C program to find sum of lower triangular matrix.
14. Write a C program to find transpose of a matrix.
15. Write a C program to find determinant of a matrix.
16. Write a C program to check Identity matrix.
17. Write a C program to check Sparse matrix.
18. Write a C program to check Symmetric matrix. 