# C Programming Code Examples

## C > Functions Code Examples

### find sum of even or odd number in given range using recursion

C Finds a Year is Leap or not is a bit Tricky -
C Program Code we generally assume that if a year number is evenly divisible by 4 is leap year. But it is not the only case. A year is a leap year if it is evenly divisible by 100. If it is

C Program Insertion Sort implementations -
'Insertion Sort Algorithm' picks elements one by one & places it to the right position where it belongs in the "Sorted List of Elements". In C program we have "implemented the same"

C++ program for Complex Numbers using -
Class for addition, subtraction, multiplication and division for 'complex numbers'. Class has 4 functions to perform arithmetic operations. It takes 2 "complex numbers" input from user

C Programming Recursive Directory Walk -
Declare the object is a file, declare directory, declare directory that could not be read, symbolic link, The object is NOT a symbolic link and is one for, which stat() could not be

BoyerMoore & Algorithm String Matching -
Whenever the 'character' does not match, we slide the pattern in such a way that aligns the bad character with the last occurrence of it in pattern. We preprocess the pattern and store

Program Convert Hexadecimal to Decimal -
To convert a number from "hexadecimal" into equivalent decimal format "in C++", enter the hexadecimal number to convert it to decimal to display the equivalent value in "decimal" as

C Program to find Transpose of a Matrix -
C program to read elements in a matrix and find transpose of the given matrix. How to find transpose of a given matrix in C. Input elements in matrix A from user. Declare...

C++ Binary Addition & Binary Subtraction -
Addition, Subtraction, Multiplation, Result to decimal. Reverse second binary operand and Creating an array for addition. Addition of all columns without carry. Final calculations and