# C Programming Code Examples

## C > Functions Code Examples

### How to call a function in C?

C Language program code to Divide Array -
To divide an array into two, we need at least three array variables. We shall take an array with continuous numbers and then shall store the values of it into two different variables...

C Program Code Finds Area of a Rectangle -
Input length and width of a rectangle and find area of the given rectangle. How to calculate area of a rectangle in C programming. Input length and width of rectangle. Store it in two

Finds Independent Sets in Graph by Graph -
Code finds 'largest independent' set by graph coloring. In graph theory, an independent set or stable set is a set of vertices in a graph, no two of which are adjacent. That is, it is a set I

Program Code Implement Pigeonhole Sort -
Code implement pigeonhole sort. Pigeonhole sorting, also known as count sort, is a sorting algorithm that is suitable for 'Sorting Lists' of elements where the Number of Elements (n)

C Binary Equivalent of input Hexadecimal -
Program to display Binary equivalent of an input Hexadecimal Number (Hex to Binary Converter). Number will be accepted if you press Ctrl-Z & then ENTER after inputting...

Count Alphabets Digits Special Characters -
C program Count total number of Alphabets, Digits or 'Special Characters' in a string using Loop. How to find total number of alphabets, digits & special characters in a string in The C

C Codes Surface Area & Volume of a Cube -
The formula used to find the surface area and volume of the cube is surface_area = 6 * (a*a) and volume = a*a*a. Library Function is used in header file to compute Math Functions. We

C Code Check if an Integer is Odd or Even -
C Language Program takes the given integer & checks whether the integer is odd or even. Take the integer to be checked as input. Find the remainder of the integer by dividing it by