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 > File Operations Code Examples

C Program to Read last n characters from the file !





Converts Hexadecimal to Binary Numbers - Hexadecimal to Binary conversion is divided in 3 steps. Extract each hex digits separately. Find the Binary of each extracted Hex digit. Store the binary equivalent of extracted hex

Code Sort N Numbers in Ascending Order - C Program sorts the numbers in ascending order using bubble sort. Bubble sort is simple sorting algorithm that works by repeatedly stepping through list to be sorted, comparing

Program Code to Selection Sort Algorithm - The 'smallest element' is exchanged with the first element of the unsorted list of elements. The "second smallest element" is Exchanged with the 'second element' of the unsorted list

C++ Program to Implement Vector in STL - C++ code to Implement Vector in STL. Insert element into the vector. Delete last element of the vector. "Size of the vector". Display by index. "Dislplay by iterator". Clear the vector

C Code Function Solve the Tower of Hanoi - C Program code uses Recursive Function and solves the tower of hanoi. Tower of hanoi is a mathematical puzzle. It consists of threerods, and a number of disks of different sizes which

Remove Spaces from Strings or Sentences - To remove or delete spaces from the string or sentence, enter a 'string'. Then start checking for spaces. If 'Space will be Found', then start 'Placing the next character' from the space to

C++ Finds the Minimum Element of Array - Construct binary search tree for the unsorted data array. For the "minimum element" move the pointer to the leftmost child node. So the value will be the "minimum value" among the

C++ Sample Code Make Simple Calculator - To make a simple calculator in the C++, which performs basic four mathematical operations (addition, subtraction, multiplicatin, division) depending on the "user's choice", switch case