C Programming Code Examples
C > File Operations Code Examples
Program to Append the Content of File at the end of Another
Calculating Arithmetic Mean of Numbers -
You enter number size then ask to enter the numbers of that size. To calculate arithmetic 'mean of all numbers', first perform addition of all the numbers, and then make a variable
C Language Codes Finds Reverse of String -
C Program code Find reverse of a given string using Loop. There are numerous ways to find Reverse of a String. First let us see the easiest method to find Reverse of String. Input string
Code find sum of main diagonal elements -
Read elements in a matrix and find the sum of main diagonal (major diagonal) elements of matrix. Find sum of all elements of main diagonal of a matrix. Input elements in the
Use If Else Statements C++ Programming -
In sometimes you have a "condition" and you want to execute a block of code if condition is true and execute another piece of code if the same condition is false. This can be achieved
Implementing Hash Table Chaining Binary -
Adding element to a node and check if node contains element. 'Adding string' in the table. Check if table contains string. Enter String to be inserted. Display table chained with binary
C Language Calculation Divide Product PI -
C Calculations on a table, the radius of table, the diameter of the table, the circumference of the table, the area of a circle, calculate the radius, calculate the circumference, calculate
Removing First Occurrence of a Character -
C program to "read any string" from user and Remove first Occurrence of a given character from the string. The program should also use the concept of functions to remove the given
BoyerMoore & Algorithm String Matching -
Whenever the 'character' does not match, we slide the pattern in such a way that aligns the bad character with the last occurrence of it in pattern. We preprocess the pattern and store