# C Programming Code Examples

## C > Recursion Code Examples

Code Count the number of Occurrences of an element in the linked list using recursion. This C Program uses recursive function & finds the occurrence for an element in an Unsorted list.

C Program to Find the length of the linked list using Recursion. This program uses Recursive Function and calculates the length of a string. The user enters a string to find it's length. List

C program, using recursion, performs a depth first search traversal. Depth-first search (DFS) is an algorithm for 'Traversing or Searching' a tree, 'tree structure' or graph. The concept of

C Program to check Whether a given string is palindrome or not 'using recursion'. Program, with recursion, determines the entered string is a 'palindrome' or not. Palindrome is a word,

Find a Binary equivalent of a decimal number entered by the user, using recursion. The user has to enter a 'decimal' which has a base 10 & this program evaluates the binary equivalent

C Language Program code to copy one string to another using recursion. The Program uses recursive function and copies a string entered by user from one 'Character Array' to another

C program display all the nodes in a linked list 'using recursion'. This program uses recursive function and displays a 'Linked List'. A Linked List is an ordered set of 'data elements', each

C Program uses recursive function & reverses the nodes in a Linked list and displays the list. Linked list is an ordered set of data elements, each 'containing a link' to its successor. This C

C program to find factorial of a number using recursion. The factorial of a 'positive number' n is given by: factorial of n (n!) = 1*2*3*4....n The factorial of a 'negative number' does not

This c program prompts user for entering any integer, finds the Factorial of input number & displays the output on screen. Use a recursive user defined function to perform the task. We

C Language program, use recursion, finds the GCD of the two numbers entered by the User. The user enters 2 numbers by using a space in between them or by pressing enter after each

Program to find HCF of a given number using recursion. Programming code using recursion finds the HCF of 2 entered integers. The 'HCF' stands for Highest Common Factor. Enter the

C Language program Find 'LCM' of a Number using Recursion. The following C Program to use recursion, finds the 'LCM'. An 'LCM' is the 'Lowest Common Multiple' of any 2 numbers.

C Program using recursion displays the first N 'natural number' on the terminal. User enters the Nth number as the input, C program then displays integral number starting from 1 up to

C Program to find the 'Biggest Number' in an array of numbers using recursion. C Program example printing the "Largest Number" in an unsorted array of elements 'Using Recursion'.

Program Find the Factorial of a number using 'recursion'. C Program prints the factorial of a number using recursion. 'Factorial' is product of all the number from 1 to the user specified

C program code to find the first Capital letter that exists in string, using recursion. We have included ctype.h in order to make use of "int isupper(char);" function that's defined inside

Program to find the length of the string using recursion. C Program uses recursive function & counts the number of nodes in a linked list. A Linked List is ordered set of data elements,

C Program to find the nth 'fibonacci number' using recursion. Program prints the fibonacci of a number. In fibonacci series, each number is the sum of the 2 preceding numbers. 0, 1, 1,

C Program find the sum of Natural Numbers using recursion. The 'Positive Numbers' 1, 2, 3... are known as natural numbers. Program below takes a positive integer from the user

The following 'C Language Program' to using recursion, finds whether the entered number is a prime number or not. A 'prime number' is integer that has no integral factor but itself &

Page 1 Page 2