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 Find Power of a Number

Power of a Number in C is usually represented with a base and an exponent. The base tells us what number is being multiplied and exponent tells us how many times the number is being multiplied. So, a power is the product of multiplying the number by itself. Examples: 5^3 = 125. Here, 5 is … Read more

advertisement

C Program to Convert Time from 12 Hour to 24 Hour Format

This is a C Program to convert 12-hour AM-PM time format to 24-hour Military time format. Problem Description Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. User has to take input as a string containing a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM), where 01 ≤ hh ≤12 … Read more

advertisement

36 Best Books on C Programming

C Programming Books for Beginners Advanced C Programming Books Data Structures and Algorithms in C Objective C Programming Popular C Programming Books C Programming Resources Additional Recommendations 1. C Programming Books for Beginners “The C Programming Language” by Brian W. Kernighan and Dennis Ritchie is a book that focuses on the ANSI standard C Language. … 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 Implement Variable Length Array

This is a C Program to implement variable length array(Vectors). An array (vector) is a common-place data type, used to hold and describe a collection of elements. These elements can be fetched at runtime by one or more indices (identifying keys). A distinguishing feature of an array compared to a list is that they allow … Read more

advertisement

C Program to Implement Bit Array

This is a C Program to implement Bit Array. A bit array is an array data structure that compactly stores bits. It can be used to implement a simple set data structure. A bit array is effective at exploiting bit-level parallelism in hardware to perform operations quickly. A typical bit array stores bt bits, where … 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.