# C Programming Code Examples

## C > Linked Lists Code Examples

### Display all the Nodes in a Linked List without using Recursion

C++ Check Whether an Input Binary Tree -
This is a C++ Program to check whether tree is Subtree of another tree. Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree T is a tree S

C Language Coding Prints Fibonacci Series -
Program to Fibonacci Series. Fibonacci Series generates subsequent number by adding two previous numbers and Fibonacci Series starts from 2 numbers F0 & F1. The initial values of

C Program Code to Catch pressing Ctrl+C -
Program example catches the Ctrl-C (SIGINT) signal for the first time and prints a output rather but exits on pressing ctrl-c again. You have presses Ctrl-C, please press again to exit

C++ Program to Implement Counting Sort -
In c++ sort pogram sample, count the number of 'occurrences' of each element. And store it in the Array of size same as the range of data input. Use element value to refer the counter

C Programming Codings Checks Leap Year -
C Language program check leap year using if else. Wikipedia states Leap Year as a special year containing one extra day i.e. total 366 days in a year. A year is said to be leap year,...

C++ Implements Fermat's Little Theorem -
Program demonstrates the implementation of Fermat's Little Theorem. For the modular "multiplicative inverse" to exist, the number and 'Modular' must be 'Coprime'. Calculates

C Find the Length of a String by Recursion -
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,

Add 2 Distances System Using Structures -
A "Structure Distance" containing two data members (inch and feet) is declared to store the distance in inch-feet system. Here, two structure variables d1 and d2 are created to