 # C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### Variable Types in C programming language

C++ Compare Binary & Sequential Search - A 'function implementing' Binary search on a 'Sorted array'. Every time this function called, counted as a iteration of 'binary search'. So if value is "Less than Value" at start index more

Find the Type of the Triangle made by i-p - Program to find the type of the triangle made by i-p values of its coordinates of its vertices. Enter coordinates of vertex A, B, C. Triangle made by these vertices is an equilateral...

A destructor is a Special Member Function - In C++, Name should begin with tilde sign(~) and must match class name. There cannot be more than one "Destructor" in a class. Unlike "constructors" that can have parameters, and

Creating a Function Checks Prime Number - Function returns true if the number passed to the function is a 'prime number', returns false if the number passed is not a 'prime number'. The appropriate message is printed from the

C Computing the Product of Two Matrices - Code computes the product of two matrices. This program accepts the 2 matrices and then find the product of 2 matrices. Develop functions to read a matrix, display a matrix

C++ Programming Simple Stack Program - A "stack" is a basic data structure and can be defined in an abstract, implementation-free manner, or it can be generally "defined" as a linear list of items in which all additions and

Program Implement Gauss Seidel Method - This is a "C++ Program" to implement "Gauss Seidel" Method. In numerical Linear Algebra, the Gauss-Seidel method, also known as the Liebmann method or "method of successive"

Program Finds Sum of Digits of a Number - 'Sum of digits' means add all the digits of any number, we take any number like 358. Its sum of all digit is '3+5+8=16'. Using given code we can easily write c++ program. Enters any num