# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### Program to Check if a given Matrix is an Identity Matrix

Code Sum of Prime numbers between 1- n -
C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For

Code to Self Balancing Binary Search Tree -
Make the "Tree Logically" empty, insert data and get "height of node". Function to max of left/right node, insert data recursively. Rotate binary tree node with left child. Rotate binary

Program Find the Area of Scalene Triangle -
First Input the length of a side of the triangle. Then Input the 'length of another side' of the triangle, then input the angle between these sides of the triangle. The area of the Scalene

Counts Leading Zeros in a Binary Number -
Find total leading zeros of a given number (in binary representation) using bitwise operator in C programming. Write a C program code to input any number from user and find total

Code Finds Maximum Between 3 Numbers -
Write a C program to find maximum between three numbers using Ladder If Else or nested if. We will continue our discussion and we will write code to find maximum between three...

Simple Class Called Cube in C++ language -
The object should calculate the 'total area' & the volume based on the side measurement. If the program supplies a side equal or lower than 0, reset the side to 1. "Create an empty"

Using the Bellman-Ford Algorithm to Find -
Using the bellman-ford algorithm to find the shortest path between two vertices assuming that negative size edges exist in the graph. A Program to find the 'shortest path' algorithm

Implement A Heuristic to Find the Vertex -
Problem takes E edges as input and outputs vertex cover of the graph, implementing the following heuristic. There is no "Polynomial" time algorithm "invented up to date" to find