## C Program to Reverse the String using Both Recursion and Iteration

This C Program reverse the string using both recursion and iteration. Here is source code of the C Program to reverse the string using both recursion and iteration. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Reverse the String using … Read more

## C Program to Perform Shell Sort without using Recursion

This C Program Performs Shell Sort without using Recursion. Here is source code of the C Program to Perform Shell Sort without using Recursion. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Perform Shell Sort without using Recursion */#include <stdio.h>#define size … Read more

## C Program for Depth First Binary Tree Search using Recursion

The following 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 backtracking is used in DFS. In this program we are performing DFS on a binary tree. In DFS, the deepest and univisited node is … Read more

## C Program to Find Product of 2 Numbers using Recursion

This is a C program to find product of 2 numbers using recursion. Problem Description This C program finds the product of 2 numbers using recursion. Problem Solution This C program using recursion, finds the product of 2 numbers without using the multiplication operator. Program/Source Code Here is the source code of the C program … Read more

## C Program to Convert Binary Code of a Number into its Equivalent Gray’s Code using Recursion

This is a C program to convert binary code of a number into its equivalent gray’s code using recursion. Problem Description This C program using recursion evaluates the gray code equivalent of a binary number. Problem Solution A gray is also represented using 0s and 1s. The speciality of gray code is that only one … Read more

## C Program to Find Sum of Digits of a Number using Recursion

This is a C program to find sum of digits of a number using recursion. Problem Description This C program finds the sum of digits of a number using recursion. Problem Solution The following C program, using recursion, finds the sum of its digits. Program/Source Code Here is the source code of the C program … Read more

## C Program to Display the Nodes of a Linked List in Reverse using Recursion

This C Program uses recursive function & reverses the nodes in a linked list and displays the list. A linked list is an ordered set of data elements, each containing a link to its successor. This program makes each data element to link to its predecessor. Here is the source code of the C program … Read more

## C Program for Depth First Binary Tree Search without using Recursion

The following C program, using iteration, 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 backtracking is used in DFS. In this program we are performing DFS on a binary tree. In DFS, the deepest and univisited node is … Read more

## C Program to Reverse a Stack without using Recursion

This C program, using iteration, reverses a stack content. Stack here is represented using a linked list. A linked list is an ordered set of data elements, each containing a link to its successor. Here is the source code of the C program to display a linked list in reverse. The C program is successfully … Read more 