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

advertisement

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

advertisement

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

advertisement

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

advertisement

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

advertisement

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

advertisement

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

advertisement

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[3][3], … Read more

advertisement

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

advertisement

C Program to Perform LU Decomposition of Any Matrix

This is a C Program to perform LU decomposition of a given matrix. Every square matrix A can be decomposed into a product of a lower triangular matrix L and a upper triangular matrix U, as described in LU decomposition. A = LU Here is source code of the C Program to Perform LU Decomposition … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.