C Program Find the Length of Linked List using Recursion

This C Program uses recursive function & calculates the length of a string. The user enters a string to find it’s length. Here is the source code of the C program to find the length of a string. The C Program is successfully compiled and run on a Linux system. The program output is also … Read more

advertisement

C Program to Solve the Magic Squares Puzzle without Recursion

This is a C Program to solve the magic squares puzzle without using recursion. Problem Description The following C program, using iteration, finds the magic square for a given odd sized number. Problem Solution A magic square is an arrangement of numbers from 1 to n^2 in an [n x n] matrix, with each number … Read more

advertisement

C Program to Implement a Heap and Perform Heap Operations

This C Program implements a heap & provide insertion & deletion operation. Here is source code of the C Program to implement a heap & provide insertion & deletion operation. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Implement a … Read more

advertisement

C Program to Search an Element in a Tree Recursively

This is a C Program to search an element in a Binary Search Tree recursively. Problem Description We have to write a C program to search an element(node) in a Binary Search Tree recursively. Expected Input and Output Case 1. Balanced Tree:When the weight is equal on both the sides of root. If the input … Read more

advertisement

C Program to Print All Nodes of Linked List using Recursion

This C Program uses recursive function & displays 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. The C Program is successfully compiled and run on a Linux system. The … Read more

advertisement

C Program to Reverse a Linked List without Recursion

This C program, using iteration, displays a linked list in reverse. 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 compiled and run on a Linux … Read more

advertisement

C Program to Count the Occurrences of Elements in a Linked List using Recursion

This C Program uses recursive function & finds the occurrence for an element in an unsorted list. The user enters the element need to be counted. Here is the source code of the C program to find the number of occurrences of a given number in a list. The C Program is successfully compiled and … Read more

advertisement

C Program to Print All Nodes of Linked List without Recursion

This C program, using iteration, displays 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. The C program is successfully compiled and run on a Linux system. The program output … Read more

advertisement

C Program to Count the Occurrences of Elements in a Linked List without Recursion

This C Program, using iteration, finds the occurrence for an element in an unsorted list. The user enters the element need to be counted. Here is the source code of the C program to find the number of occurrences of a given number in a list. The C Program is successfully compiled and run on … Read more

advertisement

Doubly Linked List Program in C

Problem Description Write a C program to show all operations in a doubly linked list. What is a Linked List? A linked list is a linear data structure in which data is stored in a non-contiguous memory location. Every node contains data and the address of the other node. What is a Doubly Linked List … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.