# C Programming Code Examples

## C > File Operations Code Examples

### Program that Merges Lines Alternatively from 2 Files & Print Result

Code Finds Area & Circumference of Circle -
C Program code to find area & circumference of circle. In this program we have to calculate the area and circumference of the circle. Two formulas for finding Circumference and Area

A Simple Function in C++ Programming -
A function is block of code which is used to perform a particular task, for example let's say you are writing a "Larger C++ Program", in that program you want to do a particular

C Read and Write Strings gets() and puts() -
String is an 'Array of characters'. In this guide, we learn how to declare strings, how to work with strings in C language and how to use the 'pre-defined' string handling functions. String

C++ Language Add Digits of any Number -
To add digits of any number in C++, we enter the number to add their digits & displays the "Addition Result" of the digits of the entered number on the output screen as shown here

C Program to Implement Stack Operations -
C Implement stack operations using dynamic memory allocation. Use malloc function to allocate memory. Define separate functions for the operations like push, pop and display.

Program Shows How a Pointer is Declared -
There are several other things that we can do with "pointers", we have discussed them later in this guide. Now, we just need to know how to link a pointer to the 'Address of a Variable'.

C++ Check if a Point lies Inside or Outside -
'C++ Program' to Check if a Point d lies inside or outside a circle defined by Points a, b, c in a 'Plane'. For any point t (xt, yt) on the plane, its position with respect to the circle defined

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