Posted in C

Sparse Matrix Using C Program

Sparse Matrix In this example you will see how to represent sparse matrix using C programming language. A sparse matrix is one where most of its elements are zero (0). For example, the following image represents a sparse matrix:

Continue Reading... Sparse Matrix Using C Program
Posted in Array C Data Structure

C Program to Compute Transpose of a Matrix

Introduction This example will show you how to compute transpose of a matrix in C program. In this example a user will be asked to enter the number of rows and columns for matrices. Then user will be asked to enter the elements at each index of the matrix. A matrix has to be square matrix for computing the transpose…

Continue Reading... C Program to Compute Transpose of a Matrix
Posted in Array C Data Structure

C Program to Multiply Two Matrix Using Multi-dimensional Arrays

This example will show you how to multiply two matrices using two dimensional array in C program. In this example we will ask user to enter the number of rows and columns for two matrices. Then we will also ask user to enter the elements at each index of two matrices. Here we will see also how to use pointers…

Continue Reading... C Program to Multiply Two Matrix Using Multi-dimensional Arrays
Posted in Array C Data Structure

C Program to Add Two Matrix Using Multi-dimensional Arrays

Introduction This example will show you how to add two matrices using two dimensional array in C program. In this example a user will be asked to enter the number of rows and columns for two matrices. Then user will be asked to enter the elements at each index of the matrices. Once user finishes providing inputs for two matrices…

Continue Reading... C Program to Add Two Matrix Using Multi-dimensional Arrays