C Programming Examples
In this section you will find some useful C Programs. These programs have been written and tested in Turbo C. In case of any queries, do post a comment.
- Program to add two numbers using function (Pass by value method)
- Program to add two numbers using call by Reference
- Progarm to calculate Factorial of a given number
- Program to generate Fibonacci series
- Arithmetic calculator using switch statement
- Addition of Array elements
- Search first occurrence of element in an array
- Sort array in ascending order
- Sort array in descending order
- Reverse a given Number
- Calculate Length of a String (without using strlen in-built function)
- Calculate Length of a String (Using strlen in-built function)
- Program to find whether a number is Armstrong or not
- Program to Demonstrate Typecasting in C
- Program to Demonstrate sscanf function in C
- Program to Demonstrate sprintf function in C
- Program to Demonstrate Pointer Operations
- Program to demonstrate Structures in C Programming Language
- Program to copy the contents of one array into another in the reverse order
- Program to perform addition of two 2 by 2 matrix
- Program to obtain Transpose of a Matrix
- Program to find if a 3 by 3 square matrix is symmetric
- Program to print binary equivalent of a given decimal integer
- Program to count number of words from a given sentence
- Program to create 10 different random numbers
- Program to determine whether the character is entered is a capital letter, a small case letter, a digit or special symbol
- Program in C that reads radius of a circle and calculates its area
- C program that reads a line of text into the computer and then writes back out in its original form
- Program in C to find weekday based on weekday number
- Sort character array (string) in ascending order in C
- Read a string and replaces every 5th character with “X”
- Program to read text from a file and display it on screen
- Program in C to display right angled triangle of star (asterisk)
- Program in C to find memory space allocation for C data-types
- Program in C to remove the last comma from a string
Wowo
my best website for learning c language
so good and happy with best answers
nice i am learning !
brilliant work by programmers
good
When I click on one of the 26 examples why does it not change the webpage on this tab but changes the webpage on another tab which has your website open.
good
very good website..!!!
how to write program using function to calculate equivalent parallel and series resistor ??i really need to know now..
great site easy to learn thanks
can i have ur website on C++ and data structures
plz class function ka program without array krke bataye
how to write the program without array function with class
good website
Best summary of all types of basic examples….
thank u author im done wit my c now….:)
Nice.. but i cant find string function
i need a program on ascending order of 3*3 matrix
create a quee programfor following function using link list
a.create
b.display
c.print left to right
d.print right to left
e.replace
f.count no of node
Hello!!!.I love programming C. please help me.