250+ C programs; In this tutorial, we will see basic to advanced level c programs with examples and output.
C Program Examples with Output for Practice
List of C Programs; as follows:
- Simple C Programs
- Number C Programs
- Calendar Programs in C
- Conversions Programs in C
- Characters Programs in C
- String Programs in C
- Area Calculation Programs In C
- Volume and Surface Area Programs In C
- Arrays Programs In C
- Matrix Programs In C
- Sorting Algorithm Programs In C
- Pointers Programs In C
- Series Programs In C
- Patterns and Shapes Programs In C
- Alphabet Pattern Programs In C
- Number Pattern Programs In C
Simple C Programs
- C Program to Print Hello World
- C Program to Add Two Numbers
- C Program to Find Average of 3, 5 Number
- C Program to Find the Absolute Value of a Number
- C Program to Calculate Simple Interest
- C program to find Compound Interest
- C program to Calculate Cube of a Number
- C Programs to check Number is Even or Odd
- C Program to Print Even Numbers from 1 to N
- C Program to find Largest of Two Numbers
- C Program to find Largest of Three Numbers
- C Program to print Multiplication Table
- C program to find Number is Divisible by 5 and 11
- C Programs for nCr Calculation
- C Programs for nPr Calculation
- C Program to print Odd Numbers from 1 to N
- C program to calculate Power of a Number
- C program to find Profit or Loss
- C Program to find the size of int, float, double, and char
- Positive or Negative Number
- Print 1 to 100 without using Loop
- C Program Find Roots of a Quadratic Equation
- C Program to Find Standard Deviation
- Sum of Even and Odd numbers in a Given Range
- Sum and Average of Three Numbers
- Square of a Number
- Square root of a Number
- C Program to Print First N Even Natural Numbers
- C Program to Print First N Natural Numbers in Reverse
- C Program to Print First N Odd Natural Numbers
- C Program to Read 10 Numbers and Find their Sum and Average
- C program to find sum and average of n numbers
- Sum of Even and Odd Numbers from 1 to n
- Student Grade
- Total, Average, and Percentage of Five Subjects
- C Program to Multiply Two Floating Point Numbers
- C Programs to find Quotient and Remainder
- C Programs to Find the Range of Data Types
- C program to Find the Distance Between Two Points
- C Program for Zip, Zap and Zoom game
Number C Programs
The list of advanced Number programs in C Programming language with multiple examples.
- C Programs to check the Number is Armstrong Number
- C programs to Count Number of Digits in a Number
- C program to Check Number is a Prime, Armstrong, or Perfect Number
- C program to Calculate Electricity Bill
- C Program to find Factors of a Number
- C Program to find Factorial of a Number
- C program to print First Digit of Number
- C program to print First and Last Digit of a Number
- C Program to Find GCD of Two Numbers
- C program to calculate Generic Root of a Number
- C program to find Gross Salary of an Employee
- C program to calculate LCM of Two Numbers
- C program to print Natural Numbers from 1 to N
- C program to print Natural Numbers in Reverse Order
- C program to check Neon Number
- C program to check Palindrome or Not
- C program to check Perfect Number or Not
- C Program to Check Whether a Number is Prime or Not
- C program to print Prime Numbers from 1 to 100
- C program to find Prime Factors of a Number
- C program to Reverse a Number
- C example to Swap Two Numbers
- C Program to Swap First and Last Digit of a Number
- C Program to find Sum of N Natural Numbers
- C program to check Strong Number
- C Program for Simple Calculator
Calendar Programs in C
- C Programs to find the Leap Year
- C program to find the Day Name of a Week
- C program to print Number of Days in a Month
- C Program to Find Number of Days in a Given Month and Year
Conversions Programs in C
The following are the list of C programs to Convert
- C Programs to Convert Binary to Decimal
- C Programs to Convert Binary to Octal
- C Program to Convert Centimeter to Meter and Kilometer
- C Program to Convert Kilometer to Meter Centimeter and Millimeter
- C Program to Convert Celsius to Fahrenheit
- C Program to Convert Decimal to Binary Number
- C Program to Convert Decimal to Octal Number
- C Program to Convert Fahrenheit to Celsius
- C Program To Convert Octal to Binary Number
- C Program To Convert Octal to Decimal
Characters Programs in C
Below programs are the C Programs to Check whether the Character is
- C Programs to find the ASCII Value of all Character
- C Program to check whether the Character is Alphabet or Not
- C Program to Check Character is Alphabet, Digit or Special Character
- C Program to Convert Lowercase Character to Uppercase Character
- C Program to Convert Character to Uppercase to Lowercase
- C Program to Check Vowel or Consonant
String Programs in C
The list of c programs on strings or character arrays.
- C Programs to find the ASCII Value of All Characters in a String
- C Program to find All Occurrence of a Character in a String
- C Program to Count Number of Words in a String
- C Program to Compare two Strings
- C Program To Concatenate Two Strings
- C Program To Copy One String To Another String
- C Program to Count Alphabets, Digits and Special Characters in a String
- C Program to Count Vowels, and Consonants in a String
- C Porgram to Count All Occurrence of a Character in a String
- C Program to Find First Occurrence of a Character in a String
- C Program to Find First Occurrence of a Word in a String
- C Program to Find Last Occurrence of a Character in a String
- C Program To Find Length Of A String
- C Program to Find Maximum Occurring Character in a string
- C Program to Find Minimum Occurring Character in a string
- C Program To Check A String Is Palindrome Or Not
- C Program to Remove First Occurrence of a Character in a String
- C Program To Remove Last Occurrence of a Character in a String
- C Program To Remove All Occurrences of a Character in a String
- C Program to Remove All Duplicate Characters in a String
- C Program to Remove All Characters in a String Except Alphabets
- C Program To Replace First Occurrence of a Character in a String
- C Program to Replace Last Occurrence of a Character in a String
- C Program to Replace All Occurrence of a Character in a String
- C Program to Reverse a String
- C Program to Reverse Order of Words in a String
- C program to Toggle Case of all Characters in a String
- C Program to Remove White Spaces from a String
- C program to Sort Names in Alphabetical Order
Area Calculation Programs In C
There are the following list of C programs on Area.
- C Programs to Find the Area of a Circle
- C Program to Find Diameter, Circumference, and Area of a Circle
- C Program to Find Area of Triangle
- C Program to Find Third Angle of a Triangle
- C Program to Check Triangle is Valid or Not using Angles
- C Program to Find Area of an Isosceles Triangle
- C Program To Find Area of Rectangle
- C Program to Find Area and Perimeter of a Rectangle
- C Program to Find Area of a Parallelogram
- C Program to find Area of a Trapezoid
- C Program to Calculate Area of Right angle Triangle
- C Program to find Area of an Equilateral Triangle
- C Program to Find Area of Rhombus
- C Program to Find Perimeter of Rhombus
- C Program to Find the Area of a Semicircle
- C Program to Find the Perimeter of a Square
Volume and Surface Area Programs In C
Following are the list of Volume and Surface Area C programs
- C Program to Find Volume and Surface Area of Sphere
- C Program to Find Volume and Surface Area of a Cylinder
- C Program to Find Volume and Surface Area of a Cube
- C Program to Find Volume and Surface Area of a Cuboid
- C Program to Find Volume and Surface Area of a Cone
Arrays Programs In C
The following are the c programming examples on Arrays
- C Programs to Perform Arithmetic Operations on One Dimensional Array
- C Program to find the Number of Elements in an Array
- C Program to Count Positive and Negative Numbers in an Array
- C Program to Copy an Array to another
- C Program to Find Sum and Average of an Array
- C Program to Count Occurrences of an Element in an Array
- C Program to Count Frequency of each Element in an Array
- C Program Count Number of Duplicate Elements in An Array
- C Program to Delete an Element in an Array
- C Program to Delete Duplicate Elements from an Array
- C Program to insert an Element in an Array
- C Program to Find Largest Number in an Array
- C Program to Find Largest and Smallest Number in an Array
- C Program To Merge Two Arrays
- C Program To Put Even And Odd Elements Of Array Into Two Separate Arrays
- C Program To Put Positive and Negative Numbers in two Separate Arrays
- C Program to Reverse an Array
- C Program To Search An Element In An Array
- C Program to Find Second largest Number in an Array
- C Program to Find Second Smallest Number in an Array
- C Program to Sort Array in Ascending Order
- C Program to Sort Array in Descending Order
- C Program to Sum of all Elements in an Array
- C Program to Sum of Even and Odd Numbers in an Array
- C Program to Swap Two Arrays Without Using Temp Variable
- C Program to Print Unique Elements in an Array
- C Program to Print the Kth Element in an Array
- C Program to Left Rotate Array Items
- C Program to Right Rotate Array Elements
- C Program To Find the Largest Element in a Row in 2d Array
Matrix Programs In C
- C Program to Add Two Matrices
- C Program to Check Two Matrices are Equal or Not
- C Program to Determinant of a Matrix
- C Program to Check if a given Matrix is an Identity Matrix
- C Program to Interchange Diagonals of a Matrix
- C Program to Find Lower Triangle Matrix
- C Program to Scalar Multiplication of a Matrix
- C Program to Check Matrix is a Sparse Matrix
- C Program to Find Sum of Diagonal Elements in a Matrix
- C Program to Find Sum of each and every Row and Column in a Matrix
- C Program to Find Sum each row in a Matrix
- C Program to Find Sum of each column in a Matrix
- C Program to Subtract Two Matrices
- C Program to Find Sum of Lower Triangle Matrix
- C Program to Sum of Opposite Diagonal Elements in a Matrix
- C Program to Check Symmetric Matrix
- C Program to find Sum of Upper Triangle Matrix
- C Program To Find the Transpose of a Matrix
- C Program to Find the Trace of a Matrix
Sorting Algorithm Programs In C
Pointers Programs In C
- C Program to Add Two Numbers using Pointers
- C Program to Swap Two Numbers using Pointer
- Create, Initialize, and Access a Pointer Variable
- Count Vowels and Consonants in a String using a Pointer
- Largest of Two Numbers using a Pointer
- C Program to Find Largest of Three Numbers using a Pointer
- Pass Pointers as the Function Arguments
- C Program to Print String using Pointer
- C Program to Read and Print Array Elements using a Pointer
- Sort an Array using a Pointer
- Sum and Average of Array Elements using a Pointer
Series Programs In C
- C Program to Display Fibonacci Series
- C Program to Find Nth Fibonacci Number
- C Program to Sum of Fibonacci Series
- C Program to Find Sum of series 1²+2²+3²+….+n²
- C Program to Find Sum of series 1³+2³+3³+….+n³
- C Program to Find Sum of Geometric Progression Series
- C Program to Find Sum of Arithmetic Progression Series
Patterns and Shapes Programs In C
The following are the list of C programs to Print patterns and shapes
- C Program to Print Christmas Tree Star Pattern
- C Program to Print Exponentially Increasing Star Pattern
- C Program to Print Floyd’s Triangle
- C Program to Print Diamond Star Pattern
- C Program to Print Half Diamond Star Pattern
- C Program to Print Mirrored Half Diamond Star Pattern
- C Program to Print Left Arrow Star Pattern
- C Program to Print Pascal Triangle
- C Program to Print Pyramid Star Pattern
- C Program to Print Hollow Pyramid Star
- C Program to Print Inverted Pyramid Star Pattern
- C Program to Print Hollow Inverted Star Pyramid
- C Program to Print Plus Star Pattern
- C Program to Rectangle Star Pattern
- C Program to Print Hollow Rectangle Star Pattern
- C Program to Print Right Arrow Star Pattern
- C Program to Print Right Angled Triangle Star Pattern
- C Program to Print Hollow Right Triangle Star Pattern
- C Program to Print Reversed Mirrored Right Triangle Star Pattern
- C Program to Print Hollow Mirrored Right Triangle Star Pattern
- C Program to Print Inverted Right Triangle Star Pattern
- C Program to Print Inverted Mirrored Right Triangle Star Pattern
- C Program to Print Rhombus Star Pattern
- C Program to Print Hollow Rhombus Star Pattern
- C Program to Print Mirrored Rhombus Star Pattern
- C Program to Print Hollow Mirrored Rhombus Star Pattern
- C Program to Print Square Star Pattern
- C Program to Print Hollow Square Star Pattern
- Hollow Square Pattern With Diagonals
- C Program to Print Hollow Sandglass Star Pattern
- C Program to Print H Star Pattern
- C Program to Print V Star Pattern
- C Program to Print Inverted V Star Pattern
- C programs to Print X Star Pattern
- C programs to Print 8 Star Pattern
Alphabet Pattern Programs In C
- C Program to Print Diamond Alphabets Pattern
- C Program to Print Downward Triangle Alphabets Pattern
- C Program to Print Downward Triangle Mirrored Alphabets Pattern
- C Program to Print Inverted Right Triangle Alphabets Pattern
- C Program to Print Inverted Triangle Alphabets Pattern
- C Program to Print K Shape Alphabets Pattern
- C Program to Print Left Arrow Alphabets Pattern
- C Program to Print Mirrored Right Triangle Alphabets Pattern
- C Program to Print Pyramid Alphabets Pattern
- C Program to Print Right Arrow Alphabets Pattern
- C Program to Print Right Pascals Triangle Alphabets Pattern
- C Program to Print Right Triangle Alphabets Pattern
- C Program to Print Right Triangle of Alphabets in Reverse
- C Program to Print Right Triangle Characters Pattern
- C Program to Print Right Triangle of Consecutive Alphabets Pattern
- C Program to Print Right Triangle of Same Alphabet in each Column
- C Program to Print Right Triangle of Mirrored Alphabets Pattern
- C Program to Print Right Triangle of Incremental Alphabets Pattern
- C Program to Print Sandglass Alphabets Pattern
- C Program to Print Triangle Alphabets Pattern
- C Program to Print Triangle of Alphabets in Reverse Pattern
- C Program to Print Triangle of Mirrored Alphabets Pattern
Number Pattern Programs In C
The following are the remaining number pattern C programming examples.
- C programs to Print Box Number Pattern of 1 and 0
- C Program to Print Inverted Right Triangle Number Pattern
- C Program to Print K Shape Number Pattern
- C Program to Print 1 and 0 in Alternative Rows
- C Program to Print 1 and 0 in Alternative Columns
- C Program to Print Left Arrow Numbers Pattern
- C Program to Print Pyramid Numbers Pattern
- C Program to Print Right Pascals Triangle of Multiplication Numbers Pattern
- C Program to Print Right Pascals Triangle of Mirrored Numbers Pattern
- C example to Print Right Triangle Number Pattern
- C Program to Print Consecutive Column Numbers in Right Triangle
- C Program to Print Consecutive Row Numbers in Right Triangle
- C program to print Pyramid pattern of numbers 1 to 10
- C Program to Print Right Triangle of Fibonacci Series Numbers Pattern
- C Program to Print Right Triangle of Numbers in Sine Wave Pattern
- C Program to print Square Number Pattern
- C Program to Print Square of Left Shift Numbers Pattern
- C Program to Print Square of Left Decrement Numbers Pattern
- C Program to Print Square of Right Increment Numbers Pattern
- C Program to Print Square With Diagonal Numbers Pattern
- C Program to Left Shift the Square Pattern of Odd Numbers
- C Program to Print Square of Right Decrement Numbers Pattern
- C Program to Print Square of Numbers in Sine Wave Pattern
- C program to Print Sandglass Number Pattern
- C Program to Print Triangle Numbers Pattern
- C Program to Print Triangle of Numbers in Reverse Pattern
- C program to Print Triangle of Mirrored Numbers Pattern
- C Program to Print V Numbers Pattern