C Programming Code Examples
C > Linked Lists Code Examples
C Program to Support Infinite Precision Arithmetic & Store a Number as a List of Digits
Simple Queue Programs in C++ Language -
The "queue? size?" function would return the length of the line, and the ?empty? function would return true only if there was nothing in the line. "Simple Queue" C++ Example, array
Find Reverse of a Number using Recursion -
Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...
C++ Prim's Algorithm Finds the Minimum -
Find the minimum spanning tree of the given graph using Prims algorihtm. This algorithm is a "greedy algorithm" that finds a minimum spanning tree for a "Connected Undirected"
Code Searchs for an Element in Linked List -
C program search for an element in the linked list using recursion. Uses recursive function & search for an element in a Linked List. Linked List is an Ordered set of Data Elements, each
Count Zeros and Ones in a Binary Number -
Program input a number from user and count total number of ones (1s) and zeros (0s) in the given number using bitwise operator. How to count zeros and ones in binary number using
C++ Implementing B-Tree Data Structure -
This C++ Program implements The "B-Tree" data structure. B-tree is a tree data structure that keeps "data sorted" and allows searches, sequential access & insertions in logarithmic
C Coding Find sum of Odd Numbers 1 to n -
C program find sum of all odd numbers from 1 to n using for loop. Input upper limit to find sum of odd numbers from user. Store it in a variable say N and initialize other variable to
Postfix Increment Operator Overloadings -
Increments ++ & Decrements -- operator are overloaded in best possible way, increase the value of a data member by 1 if "++ operator" operates on an object and decrease value of