# C Programming Code Examples

## C > Recursion Code Examples

### C Program to Find whether a Number is Prime or Not using Recursion

C Language Code Investigating the Family -
C Function to input data on Family members. C Function to output data on people on file. Structure to hold data from file. Pointer to Family structure. File position. Open file for

Finding all Roots of a Quadratic Equation -
Find all roots of a quadratic equation using if else. Input coefficients of quadratic equation from user. Store it in some variable say a, b, c. Find Discriminant of the an Equation, using...

Implement Graham Scan Algorithm Finds -
This is a C++ Program to implement Graham Scan algorithm. 'Graham's scan' is a method of computing the convex hull of a finite set of points in the plane with time complexity O(n

C Check the Number is Armstrong number -
C Program to input a number from user and check whether given number is Armstrong number or not. Armstrong number is n-digit number that is equal to the sum of the nth...

C++ Check a Number is Palindrome or not -
Palindrome number is a number that remains the same when its digits are reversed. 16461, for example: we take 121 and reverse it, after revers it is same as original. Get a value from

C Program Code Merge Two Sorted Array -
C program to read elements in two array and merge elements of two array into third array. Elements of array can be merged either in ascending order or in descending order in C.

C++ Language Break Continue Statement -
We can use "break" statement inside loops to terminate a 'loop & exit' it. In above example loop execution 'continues' until either n>=20 or entered score is negative. This statement

Perform Integer Partition for Specific Case -
C++ program code generates all the possible "partition" can be generated by breaking the given value. This algorithm takes the input of a "natural number" and prints all the possible