CHECK FOR SPARSE MATRIX
Answer:A sparse matrix is a matrix in which the most of the elements are zero (0). Here follows a program which inputs matrix elements and checks if more than half of its elements are zero, it is a sparse matrix.
Compile the program in bash shell. and run its compiled out.
$ gcc sparsecheck.c -o sparsecheck.out
Here is the output: