## Tic Tac Toe Game in C

Tic Tac Toe is a game in which two players pick X’s or O’s alternately in a matrix cell formed by two vertical and horizontal lines crossing each other. Each player tries to place three of their marks in a horizontal, vertical, or diagonal row. The player who put in this form will succeed in … Read more

## Sparse Matrix Representation in C

Sparse Matrix: A sparse matrix is a matrix with the majority of its elements equal to zero. To identify a sparse matrix, we will check all the elements in the sparse matrix one by one and count the number of 0’s in it if the number of zeros’ is greater than 50% of the total … Read more

## C Program to Check Symmetric Matrix

Symmetric Matrix: A square matrix that is equal to its transpose is known as a symmetric matrix. Transpose Matrix: The transpose of a matrix is found by interchanging its rows into columns or columns into rows. The transpose of the matrix is denoted by using the letter “T”. So, a matrix A is said to … Read more

## C Program to Subtract Two Matrices

Matrix Subtraction in C is used to subtract two matrices. i.e. calculate and print the difference of them. Example: Given two matrices of same size, this program will subtract the corresponding elements of each matrix and print the result. Input: First Matrix: Second Matrix: Output: – = = Problem Description Write a C program which … Read more

## Addition of Two Matrix in C

Matrix addition in C is used to add two matrices. i.e. calculate and print the sum of them. Example: Given two matrices of same size, this program will add the corresponding elements of each matrix and print the result. Input: First Matrix: Second Matrix: Output: + = = Problem Description Write a C program which … Read more

## C Program to Perform Addition, Subtraction and Trace of 2 Matrices

This C program calculates the addition or subtraction & trace of 2 matrices. Problem Description This is a C program which calculates the addition or subtraction & trace of 2 matrices. Here trace of the matrix is the sum of the elements on the main diagonal i.e the diagonal from the upper left to the … Read more

## C Program to Implement Adjacency Matrix

This is a C Program to implement Adjacency Matrix. Adjacency Matrix is a 2D array of size V x V where V is the number of vertices in a graph. Let the 2D array be adj[][], a slot adj[i][j] = 1 indicates that there is an edge from vertex i to vertex j. Adjacency matrix … Read more

## C Program to Find Basis and Dimension of a Matrix

This is a C Program to find the basis and dimension of the given matrix. Here is source code of the C Program to Find Basis and Dimension of a Matrix. The C program is successfully compiled and run on a Linux system. The program output is also shown below. #include<stdio.h> int main() {  int a, … Read more

## C Program to Represent Linear Equations in Matrix Form

This is a C Program to represent a set of linear equations in matrix form. This is c program to convert the system of linear equations to matrix form. The input is the coefficient of each variable and constant. Program rearranges them and converts them into matrix form, which aids solving them. Here is source … Read more 