# C Programming Recursion Examples, Programs

Recursion is the process by which a function calls itself. In programming languages, if a program calls a function inside the same function, then it is called a recursive call of the function. C programming supports the feature of recursion – with the help of recursion, we can call a function itself.

This section contains the **C solved programs on recursion**, practice these programs to learn the concept of recursion. Each function has the solved code, output, and explanation.

## List of C programming Recursion Examples, Programs

**C program to read a value and print its corresponding percentage from 1% to 100% using recursion**.

C program to read a value and print its corresponding percentage from 1% to 100% using recursion**C program to find factorial using recursion**.

This program will read an integer value and print its factorial using recursion, in this program there will be a function which will calculate factorial by calling itself (recursion).**C program to print fibonacci series using recursion**.

This program will print the Fibonacci series till N numbers (which will be input through the user) using recursion.**C program to calculate power of a number using recursion**.

This program will read base and power and calculate its result using recursion, for example base is 2 and power is 3 then result will be (2^3=8).**C program to count digits of a number using recursion**.

This program will read an integer number and count its total digits using recursion, for example: input value is 34562, and then total number of digits is: 5.**C program to find sum of all digits using recursion**.

This program will read an integer number and print sum of all digits using recursion, for example: input value is 34562, and then sum of all digits is: 20.**C program to calculate length of the string using recursion**.

This program will read a string and count its total number of characters (length of the string) using recursion.**C program to reverse an integer number using recursion**.

Here, we are going to learn how to reverse an integer number using recursion in C programming language?**C program to check a given number is prime or not using recursion**.

Here, we are going to learn how to check a given number is prime or not using recursion in C programming language?**C program to calculate the product of two numbers using recursion**.

Here, we are going to learn how to calculate the product of two numbers using recursion in C programming language?

TOP Interview Coding Problems/Challenges

- Run-length encoding (find/print frequency of letters in a string)
- Sort an array of 0's, 1's and 2's in linear time complexity
- Checking Anagrams (check whether two string is anagrams or not)
- Relative sorting algorithm
- Finding subarray with given sum
- Find the level in a binary tree with given sum K
- Check whether a Binary Tree is BST (Binary Search Tree) or not
- 1[0]1 Pattern Count
- Capitalize first and last letter of each word in a line
- Print vertical sum of a binary tree
- Print Boundary Sum of a Binary Tree
- Reverse a single linked list
- Greedy Strategy to solve major algorithm problems
- Job sequencing problem
- Root to leaf Path Sum
- Exit Point in a Matrix
- Find length of loop in a linked list
- Toppers of Class
- Print All Nodes that don't have Sibling
- Transform to Sum Tree
- Shortest Source to Destination Path

Comments and Discussions