Skip to content

Find the number of even/odd integers in an array

To know the number of even/odd numbers, we use the modulus function. ‘%’
The program is:

Binary Search

Binary Search algorithm reduces the time complexity of the searching algorithm.

Insertion Sort using C

This program represents the implementation of Insertion Sort using C language:

Selection Sort using C

The following C program represents how Selection Sort Algorithm can be implemented.

Bubble Sort using C

This program shows the implementation of Bubble Sort using C:

C program to merge two sorted arrays

Program in the C programming language to merge two sorted arrays. Note that after this code is compiled, the elements of the arrays should be entered  in the ascending order as the program is made according to it. Below is the code of the C program -

Secant Method

Secant Method is a method to find the roots of a function f.
For coding, we define the function f in a separate code and then use it accordingly.
The C code for this method is:

Program in C to transpose a 2D array

Transpose means changing the rows of 2D array into columns and columns into rows. Below is the code in the C programming language to transpose a two dimensional array -

C program to delete an element from the array

Data structure’s C program to delete an element from the array. Enter the array size and then it’s elements. After this enter the location of the element you want to delete and the item will be deleted. Below is the code of the above program

C program to insert an element in the sorted array

Insertion is one of the operations performed on the arrays. So below is the program in C language to insert an element / item in the sorted array -