# C Programming Code Examples

## C > File Operations Code Examples

### Find Sum of Numbers given in Command Line Arguments Recursively

C Increment every Element of the Array by -
C Program increments every element of the array by one & print array. We need to add 1 to all the elemnts of the given array. After adding 1 to all the elements of an array print

C++ Describe the Representation of graph -
This algorithm represents a given graph using 'Adjacency List'. This method of representing graphs isn't efficient. The time complexity of this algorithm is O(v*e). Print the 'adjacency'

C Programming I/O of Floats and Integers -
Program to Prints the number right justified within 6 columns. Tries to print number right justified to 3 digits but number is not right adjusted because there are only 4 numbers.

Initializing the Members of a Class Using a -
This C++ example uses a class that contains a constructor used to 'initialize the object'. The class is called ShoeBox. When supplied with a Length, a Height, a Width, the object should

C program code to Find Area of a Triangle -
C Input base and height of a triangle and find area of the given triangle. How to find area of a triangle in C programming. Input base of the triangle. Store in some variable say base.

C Program Code Finds Area of a Rectangle -
Input length and width of a rectangle and find area of the given rectangle. How to calculate area of a rectangle in C programming. Input length and width of rectangle. Store it in two

C++ Strings Matching using String Library -
C++ program performs string matching using "String library" of C++. A text and a pattern is given as input. The Pattern is 'searched' for in text and all instances of the pattern are given

Converts Octal Number to Binary Number -
The octal number is converted to decimal at first. Then, the decimal number is converted to binary number. The octal number entered is passed to convertOctalToBinary() function.