C PROGRAMS
Following programs have been developed in Dev C++. Click here to download Dev C++.
Download all the programs in ZIP format.
Simple C Programs
- Program to Find Sum and Average of Three Real Numbers
- Program to Find Area of Square and Circumference of a Circle
- Program to find Sphere Surface Area and Volume of a Sphere
- Program to Find Area of a Triangle using Hero Formula
- Program to Find Simple Interest and Compound Interest
- Program to Convert Temperature from Degree Centigrade to Fahrenheit
- Program to Convert Time in Seconds to Hours Minutes and Seconds
- Program to Swap Values of Two Variables using Third Variable
- Program to Swap Values of Two Variables Without using Third Variable
- Program to Calculate the Net Salary
Control Statements
- Program to Find Largest of Three Numbers
- Program to Check Whether a Character is Vowel or not by using switch Statement
- Program to Find the Sum of First 100 Positive Integers
- Program to Find the Sum of Even and Odd Numbers from First 100 Positive Integers
- Program to Find the Sum of Digits of a Positive Integer
- Program to Find Whether the Given Number is a Prime Number
- Program to Print First N Prime Numbers
- Program to Print a Table of any Number
- Program to Check Whether the Given Number is an Armstrong Number
- Program to Print the Numbers Which are Divisible by 3 and 5 from First 100 Natural Numbers
- Program to Find Whether a Number is Palindrome or Not
- Program to Find Factorial of a Number without using Recursion
- Program to Find Factorial of a Number using Recursion
- Program to Print Fibonacci Series without Recursion
- Program to Print Fibonacci Series using Recursion
- Program to Reverse a Given Number
- Program to Find Value of sinx using Expansion Series given below:
sin(x) = x - x3/3 + x5/5 - x7/7...... - Program to Print the Pattern:
1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321
- Program to Find HCF of Two Numbers using Recursion
- Program to Find HCF of Two Numbers Without Recursion
- Program to Find Vowels in a String
- Program to Count Number of Words and Number of Characters in a String
- Program to Implement break Statement
- Program to Implement continue Statement
Arrays
- Program to Print Transpose of a Matrix
- Program to Add Two Matrices
- Program to Multiply Two Matrices
- Program to Find Smallest Among N Numbers
- Program to Illustrate the Concept of Passing 1-D Array to Function
- Program to Illustrate the Concept of Passing 2-D Array to Function
Strings
- Program to Concatenate Two Strings using strcat( )
- Program to Concatenate Two Strings without using strcat( )
- Program to Compare Two Strings using strcmp( )
- Program to Compare Two Strings without using strcmp( )
- Program to Copy String using strcpy( )
- Program to Copy String without using strcpy( )
- Program to Find Length of a String using strlen( )
- Program to Reverse a String using strrev( )
- Program to Reverse a String without using strrev( )
- Program to Input-Output Strings using Character Functions
- Program to Input-Output Strings using gets( ) and puts( )
- Program to Input-Output Strings using printf( ) and scanf( )
- Program to Find Length of a String Without using strlen( )
- Program to Find Whether a String is Palindrome or Not
- Program to Find Whether a String is Palindrome or Not without using String Functions
Functions
Recursion
- Program to Find Factorial of a Number using Recursion
- Program to Print Fibonacci Series using Recursion
- Program to Find HCF of Two Numbers using Recursion
Pointers
Structures
- Program to Implement Structure
- Program to Implement Structure with Array
- Program to Implement Structure with Function
- Program to Implement Structure with Pointers
Searching & Sorting
- Program to Search an Element in the Array using Linear Search
- Program to Search an Array using Binary Search
- Program to Sort an Array using Bubble Sort
- Program to Sort an Array using Selection Sort
File Handling
- Program to Write and Read a Character from a File
- Program to Write and Read an Integer from a File
- Program to Write and Read a String from a File
- Program to Write Data into a File using fprintf( )
- Program to Read Data from File using fscanf( )
- Program to Copy Contents of One File to Another
- Program to Print a File and Count Number of Characters