# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### C Programming - C Assignment Operators

Solves Tower of Hanoi Problem Recursion -
C Program uses recursive function and solves the "Tower of Hanoi". The tower of hanoi is a mathematical puzzle. It consists of threerods, and a number of disks of different sizes which

Implement Hash Tables Quadratic Probing -
Returns whether n is "prime" or not. Find next prime size of the table. Function To Generate Hash. Function to Initialize Table. Function to "Find Element" at a key. Insert Element into a

C Code Demonstration of Tree Operations -
Program demonstration of Tree Operations - insertion, inorder, preorder, postorder. Enter the number of terms you want to add to the tree. Repeated entry error value rejected...

Reverse Counting program in C Language -
C Program reverse counting is sequence of whole numbers in descending order without zero. Developing a program of counting in C programming language is easy and we shall

Search an Element in a Binary Search Tree -
Construct Binary Search tree for the unsorted data array. 'Search the element' starting from the Root of the Tree. Proceed with the search by comparing an element to the data of node

C Programming language WAV file player -
You need a HUGE memory model to run this. Checks to see if a Sound Blaster exists at a given address, returns true if Sound Blaster found, false if not. Send a byte to the DSP

The C++ Break Statement and Switch Case -
In C++ program, we have the variable i inside "Switch Braces", which means whatever the value of variable i is, the 'corresponding' case block gets executed. We have passed integer

C Programs Second Largest Array Element -
Finding the second largest value in an array is a classic C array program. Program gives you an insight of iteration, array and conditional operators. We iteratively check each element