# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### Program to Identify whether the String is Palindrome or not using Stack

Simple Mailing list use array of structures -
C programming code to Mailing list. Initialize the structure array. Initialize the list. Get a menu selection. Input addresses into the list. Find an unused structure. Delete an address.

Program Prints Prime Numbers Between 2 -
Example to print all 'prime numbers' between two numbers in C++ Language. This problem is solved using nested for loop and if...else. In this program, the while loop is iterated times.

The C++ Implementation for Binary Heap -
Capacity is the capacity of the "binary heap". Duplicates are allowed. "Throw Overflow" if container is full. Find the smallest item in the "priority queue". Return the smallest item, or

Program Create a File & Store Information -
C Code creates a file & store information. We frequently use files for storing information which can be processed by our programs. In order to store information permanently and

Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then

Tower Of Hanoi Alogithm Using Recursion -
C++ Program to implement "Tower Of Hanoi" alogithm using recursion. Shows Movements of disk from one tower to another when a key is pressed. Entering the fibonacci number and

C Code Finds the Sum of all Nodes in Tree -
C Program finds the sum of all nodes in a tree such that any node is sum of values at left and right sub tree. Function to find depth of a tree. Function to modify the tree. Function to

Binary Search Algorithm in C++ Language -
A program which takes some 'Elements' in an array and a 'Key' in variable then program use 'Binary Search' C++ Algorithm to find the key. One to sort array using 'Bubble Sort'. Second