Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > Small Programs Code Examples

Compare two strings by soundex values





Construct an Expression Tree For a Given - Program, using recursion, evaluates a Prefix Expression in an "Expression Tree". A binary expression tree is a specific application of a 'binary tree' to evaluate certain expressions.

Swapping Two Numbers Without Variable - Imagine we have two number 1 and 2 stored in x and j respectively now. If we add x and j (1 + 2) and store it to x then x will become 3 and j is still 2. We subtract j (2) from new value of

C++ Program Find the Mode in a Data Set - In C++ language, The mode is the maximum of the "count of occurrence" of the different data element. This algorithm is beneficial for large dataset with high repetition frequency

Triangle given the lengths of its sides in C - C Programming code gives all details of a Triangle given the lengths of its sides. Enter the lengths of the three sides of the triangle. S is the semiperimeter of the triangle. D is...

Find Sum of Node values at Row or Level - C Program to Find the Summation of Node values at Row or Level. Create a new node with the data from the user. Check for root node and then create it. Searching for the...

C++ Codings Shutdown Computer System - To shutdown and restart you computer using C++, just call the function system() of stdlib.h library which will call the cmd or terminal. So to shutdown and 'restart your computer', just

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

C Programming code open a file by fname - Returns a FILE pointer on success or NULL pointer on failure. Open text file for reading, create a text file for writing, append to text file, open binary file for reading, create binary