# C Programming Code Examples

## C > If Else and Switch Case Code Examples

### Break statement in Switch Case

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 to Implement Insertion Sort -
Insertion sort algorithm sort data by inserting them one by one into the List. This algorithm is based on sorting playing cards by picking & inserting them one by one. Here we take data

C++ Break Keyword is used to Stop Loops -
The 'C++ program' tries to count alphabetical letters from d to n, but a break makes it stop when it encounters k: In a for statement, the 'break' can stop the counting when particular

C++ Program Deletes Vowels from Strings -
To delete all the vowels from the string in C++ programming, 'you have to ask' to the user to enter the string, now start checking for vowel ('i.e., a, A, e, E, i, I, o, O, u, U') to delete all the

Code Perform Binary Search use Recursion -
C program, 'using recursion', performs binary search. In this c program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted

Implement Extended Eucledian Algorithm -
Program demonstrates the implementation of "Extended Eucledian" Algorithm. For the 'Modular Multiplicative Inverse' to exist, the number & modular must be coprime. Return

Program Finds the Longest Path in a DAG -
Program to find longest path in DAG. Given a weighted directed acyclic graph and a source vertex s in it, find the longest distances from s to all other vertices in the given graph. Create

C Program Find First N Fibonacci Numbers -
C Coding calculate the Fibonacci Numbers in the series. First two numbers in the Fibonacci sequence are 0, 1 & each subsequent number is the sum of the previous 2. Fn = Fn-1 + Fn-2