C Programs

100+ Free C Programs and Tutorials



Find more than 100 C Programs for Beginners and Advanced Level Programmers. These C Program Codes with Explanation, Output and Algorithm Analysis. You will find commonly asked Interview Questions in Programming Interviews. You can also find Data Structures and Algorithm Programs in C Programming Language on this website.

Note: The C Program Codes and Tutorials listed below are developed in Linux Ubuntu Operating System and compiled with GCC Compiler. However, they are compatible to work in Microsoft Windows, Macintosh and other Operating Systems as well.

11 Hacking and Computer Programming Movies That Every Programmer Should Watch!

General C Programs
Hello World in Different Programming Languages
C Program To Print First N Terms of Lucas Sequence
C Program To Find Union and Intersection of Two Sets
C Program To Print Tribonacci Series
C Program To Check Positive and Negative Numbers
C Program To Print Multiplication Table From 1 To N
C Program To Print Prime Numbers from 1 To N
C Program To Find Magic Number
C Program To Find Quotient of a Number
C Program For Menu Driven Program using Switch Case, Functions, If Else Loop
C Program To Find Average of N Numbers
C Program To Add Two Complex Numbers
C Program To Calculate Simple Interest
C Program to Find Factorial of Large Numbers in C Programming
C Program To Print Hello World
C Program To Find Largest Among Three Numbers
C Program To Find Perimeter of Rectangle
C Program To Print Fibonacci Series
C Program To Add Two Numbers
C Program To Find GCD of Two Numbers
C Program To Find Remainder of a Number
C Program To Swap Two Numbers using Call By Reference
C Program To Find Value of nCr
C Program To Multiply Two Numbers without Multiplication Operator
C Program To Convert Fahrenheit to Celsius
C Program To Add Two Numbers without Addition Operator
C Program To Subtract Two Numbers without Subtraction Operator
C Program To Find Value of nPr
C Program To Generate Random Numbers
C Program To Check Character is Alphabet or Digit
C Program To Print Strong Numbers From 1 To N
C Program To Divide Two Numbers without Division Operator
C Program To Check Perfect Number
C Program To Check Strong Numbers
C Program To Check Palindrome Number
C Program To Convert Uppercase and Lowercase Characters
C Program To Calculate Compound Interest
C Program For Age Calculator
C Program To Find LCM of N Numbers
C Program To Check if Character is Uppercase or Lowercase
C Program To Check Validity of Triangle
C Program To Raise Number to Power
C Program To Find LCM of Two Numbers
C Program To Subtract Two Numbers using Pointers
C Program To Convert Numbers to Words
C Program To Find Narcissistic Number
C Program For Simple Calculator Application
C Program To Check Even and Odd Number
C Program To Calculate Sum of Digits of a Number
C Program To Count Trailing Zeros in an Integer
C Program To Find Factorial of Number
C Program To Convert ASCII Values
C Program To Add Two Numbers using Function
C Program To Check Special Number
C Program To Swap Two Numbers using Call By Value
C Program To Reverse a Number
C Program To Find Roots of Quadratic Equation
C Program To Check Leap Year
C Program To Find Armstrong Number
C Program To Swap Two Numbers using Pointers
C Program For Tower of Hanoi Problem without Recursion
C Program To Count Digits of Number
C Program For Arithmetic Progression
C Program To Calculate Sum of Even Numbers
C Program For Linear Search Algorithm
C Program To Check Prime Number
C Program To Convert Celsius To Fahrenheit
C Program To Swap Two Numbers without using Temporary Variable
C Program To Find Largest Digit of a Number
C Program To Calculate Distance Between Two Points
C Program To Add Two Numbers using Pointers
C Program To Check Perfect Square Number
C Program To Evaluate A Polynomial
C Program To Calculate Sum of Odd Numbers
C Program To Calculate Compound Interest
C Program To Swap Two Numbers using Temporary Variable
C Program To Find Smallest Digit of a Number
C Program To Count Trailing Zeros in Factorial of Number



Recursion Programs
C Program For Tower of Hanoi Algorithm
C Program For Binary Search using Recursion
C Program To Raise Number To Power using Recursion
C Program To Find Factorial using Recursion
C Program To Print Fibonacci Series using Recursion
C Program To Find Sum of Digits of Number using Recursion
String Programs
C Program To Sort Names in Alphabetical Order
C Program For Naive Pattern Matching Algorithm
C Program To Print Longest Common Subsequence Problem Algorithm
C Program To Encrypt and Decrypt String Passwords
C Program To Find Permutations of a String
C Program To Count Vowels in a String
C Program To Compare Two Strings
C Program To Print Vowels in a String
C Program To Convert String Characters From Uppercase To Lowercase and Vice – Versa
C Program To Sort Names is Descending Order
C Program To Reverse a String
C Program To Replace A Character in String
C Program To Convert String into Lowercase Characters
C Program To Concatenate Two Strings
C Program To Remove Vowels from String
C Program To Convert String into Uppercase Characters
C Program To Find Length of String
Array and Matrix Programs
C Program To Find Trace and Normal of Matrix
C Program To Print Latin Square
C Program To Check whether a Matrix is Sparse Matrix or Not
C Program To Implement Chain Matrix Multiplication Algorithm
C Program To Check Skew Symmetric Matrix
C Program To Find Symmetric Matrix
C Program To Sort Array in Ascending Order
C Program To Find Sum of Rows and Columns of Matrix
C Program To Find Smallest Element in Array
C Program To Add Two Matrices
C Program To Find Transpose of Matrix
C Program For Matrix Chain Mutliplication
C Program To Reverse Array Elements
C Program To Find Sum of Lower Triangle Elements
C Program To Sort Array in Descending Order
C Program To Count Occurrence of Array Element
C Program To Find Largest Element in Array
C Program To Calculate Sum of Array Elements
C Program To Multiply Two Matrices
C Program To Print Magic Square Matrix
C Program For Binary Search Algorithm using Function
C Program To Find Sum of Major and Minor Diagonal Elements



Pattern C Programs
C Program To Print Floyd Triangle
C Program To Print Pascal Triangle
Graphics C Programs
Midpoint Circle Drawing Algorithm C Program
Gupta Sproull Algorithm C Program
Bresenham Line Drawing Algorithm C Program
DDA Line Drawing Algorithm C Program
Numerical Methods C Programs
Newton-Raphson Method C Program
Euler’s Method C Program
Secant Method C Program
Bisection Method C Program
Gauss Seidel Method C Program
Simpson’s 3/8th Rule C Program
Picard’s Method C Program
Regula Falsi Method C Program
Bisection Method Algorithm and Flowchart
Simpson’s 1/3rd Rule C Program
Trapezoidal Rule C Program
Number System Conversion Programs
C Program For Hexadecimal To Binary Conversion
C Program To Convert Hexadecimal To Decimal Number
C Program To Convert Decimal To Octal Number
C Program To Convert Octal To Decimal Number
C Program To Convert Decimal To Hexadecimal Number
C Program To Convert Decimal To Binary Value
C Program To Convert Binary To Decimal
C Program To Convert Decimal into Binary, Hexadecimal and Octal Values
File Handling Programs
C Program To Read Contents of Text File
C Program To Implement Caesar Cipher Algorithm
C Program To Count Number of Spaces, Tabs and Newlines
C Program To Encrypt and Decrypt Text Files
Miscellaneous C Programs
C Program To Create Your Header File
C Program To Display Day of a Date
Difference Between C and Java Programming
C Program To List Files and Sub Directories in a Directory
C Program To Find First and Follow of Grammar
C Program For Recursive Descent Parsing
C Program To Print Map of India
C Program For System Shutdown Program For Linux Ubuntu
C Program To Print Hello World without Semicolon
C Program To Display Current Date and Time
C Program To Find IP Address in Linux and Windows
C Program To Print Christmas Tree
Main Function in C Programming Language
Numerical Methods C Programs
Types of Operators in C Programming
C Program To Display Digital Clock
C Program To Display Source Code
C Program To Find Execution Time of a Program
Difference Between C and C++ Programming Language
Difference between Call By Value and Call By Reference
Lvalue Required Error in C Programming
Big O Notation Explained