On this page, you'll find a list of 100+ C programs for interview preparation and practice. Each program is discussed in individual blog posts. All the C programs are explained with output and step-by-step explanations.
C programming is a high-level programming language developed by Dennis Ritchie in the early 1970s. Originally designed to implement the UNIX operating system, it has since become a widely used language for various types of software development.
C programming is known for its performance, portability, and direct access to hardware. It offers a level of control often not found in higher-level languages. C is especially important for understanding the inner workings of computers and serves as a foundation for many other programming languages, including C++, C#, and Objective-C.
Basic Programs
C Program Hello World Program ExplainedC Program to Add Two Numbers
C Program to Subtract Two Numbers
C Program to Multiply Two Numbers
C Program to Divide Two Numbers
C Program to Find the Remainder of Two Numbers
Mathematical Programs
C Program to Calculate Factorial using RecursionC Program to Generate Fibonacci Series
C Program to Check Prime Number
C Program to Calculate the Power of a Number
C Program to Find ASCII Value of a Character
C Program to Check Even or Odd Number
C Program to Check Leap Year
C Program to Convert Celsius to Fahrenheit
C Program to Convert Fahrenheit to Celsius
C Program to Calculate Simple Interest
C Program to Calculate Compound Interest
String Manipulation Programs
C Program to Find Length of String without using Library FunctionC Program to Concatenate Two Strings without Using Library Function
C Program to Compare Two Strings without using Library Function
C Program to Copy Strings without using the Library Function
C Program to Check Palindrome String
C Program to Reverse a String
C Program to Count Substrings in a String
C Program to Count Frequency of Each Character in String
C Program to Check Whether a Character is a Vowel or Consonant
C Program to Sort Array in Descending Order
C Program to Merge Two Arrays
C Program to Find Maximum Element in Array
C Program to Insert an Element in an Array
C Program to Delete an Element from Array
C Program to Search an Element in an Array
C Program to Count Total Number of Duplicate Elements in an Array
C Program to Find Sum of Array Elements using Pointers
C Program to Multiply Two Matrices
C Program to Check Matrix Symmetry
C Program to Concatenate Two Strings Using Pointers
C Program to Compare Two Strings Using Pointers
C Program to Copy One String to Another Using Pointers
C Program to Find Length of a String Using Pointers
C Program to Reverse a String Using Pointers
C Program to Access Two-Dimensional Array Using Pointers
C Program to Check Armstrong Number
C Program to Generate Random Numbers
C Program to Check Whether a Number is Palindrome or Not
C Program to Check Whether a Number is Negative or Positive
C Program to Find Sum of Digits of a Number
C Program to Count Number of Digits in an Integer
C Program to Find GCD of Two Numbers
C Program to Find LCM of Two Numbers
C Program to Print Multiplication Table of Given Number
C Program to Print Stars in Pyramid Shape
C Program to Find Factorial of a Number Using Recursion
C Program to Search an Element in an Array Using Linear Search
C Program to Search an Element in an Array Using Binary Search
C Program to Implement Singly Linked List
C Program to Implement Doubly Linked List
C Program to Reverse a Singly Linked List
C Program to Implement Stack Using Arrays
C Program to Implement Queue Using Arrays
C Program to Implement Stack Using Linked List
C Program to Implement Queue Using Linked List
C Program to Implement Binary Search Tree
C Program to Perform Inorder, Preorder, and Postorder Traversal of a Binary Tree
C Program to Implement AVL Tree
C Program to Implement Graph Using Adjacency Matrix
C Program to Implement Graph Using Adjacency List
C Program to Implement Insertion Sort
C Program to Implement Merge Sort
C Program to Implement Quick Sort
C Program to Implement Linear Search
C Program to Implement Binary Search
C Program to Implement Floyd-Warshall Algorithm
C Program: Bubble Sort in Descending Order
C Program: Selection Sort in Ascending Order
C Program: Selection Sort in Descending Order
C Program: Insertion Sort in Ascending Order
C Program: Insertion Sort in Descending Order
C Program: Merge Sort in Ascending Order
C Program: Merge Sort in Descending Order
C Program: Quick Sort in Ascending Order
C Program: Quick Sort in Descending Order
C Program: Heap Sort in Ascending Order
C Program: Heap Sort in Descending Order
C Program to Calculate Difference Between Two Time Periods
C Program to Store and Display Information Using Structures with Pointers
C Program to Find Roots of a Quadratic Equation Using Functions
C Program to Create Simple Calculator Using Switch Case
Array Programs
C Program to Sort Array in Ascending OrderC Program to Sort Array in Descending Order
C Program to Merge Two Arrays
C Program to Find Maximum Element in Array
C Program to Insert an Element in an Array
C Program to Delete an Element from Array
C Program to Search an Element in an Array
C Program to Count Total Number of Duplicate Elements in an Array
C Program to Find Sum of Array Elements using Pointers
Matrix Programs
C Program to Find Transpose of a MatrixC Program to Multiply Two Matrices
C Program to Check Matrix Symmetry
Pointer Programs
C Program to Swap Two Numbers Using PointersC Program to Concatenate Two Strings Using Pointers
C Program to Compare Two Strings Using Pointers
C Program to Copy One String to Another Using Pointers
C Program to Find Length of a String Using Pointers
C Program to Reverse a String Using Pointers
C Program to Access Two-Dimensional Array Using Pointers
Number Programs
C Program to Reverse a NumberC Program to Check Armstrong Number
C Program to Generate Random Numbers
C Program to Check Whether a Number is Palindrome or Not
C Program to Check Whether a Number is Negative or Positive
C Program to Find Sum of Digits of a Number
C Program to Count Number of Digits in an Integer
C Program to Find GCD of Two Numbers
C Program to Find LCM of Two Numbers
Loop Programs
C Program to Find Sum of Natural Numbers using RecursionC Program to Print Multiplication Table of Given Number
C Program to Print Stars in Pyramid Shape
Functions and Recursion
C Program to Find LCM and GCD Using RecursionC Program to Find Factorial of a Number Using Recursion
Data Structure Programs
C Program to Implement a Single-Dimensional ArrayC Program to Search an Element in an Array Using Linear Search
C Program to Search an Element in an Array Using Binary Search
C Program to Implement Singly Linked List
C Program to Implement Doubly Linked List
C Program to Reverse a Singly Linked List
C Program to Implement Stack Using Arrays
C Program to Implement Queue Using Arrays
C Program to Implement Stack Using Linked List
C Program to Implement Queue Using Linked List
C Program to Implement Binary Search Tree
C Program to Perform Inorder, Preorder, and Postorder Traversal of a Binary Tree
C Program to Implement AVL Tree
C Program to Implement Graph Using Adjacency Matrix
C Program to Implement Graph Using Adjacency List
Sorting and Searching Algorithms
C Program to Implement Bubble SortC Program to Implement Insertion Sort
C Program to Implement Merge Sort
C Program to Implement Quick Sort
C Program to Implement Linear Search
C Program to Implement Binary Search
Graph Algorithms
C Program to Implement Dijkstra’s AlgorithmC Program to Implement Floyd-Warshall Algorithm
Advanced Sorting Algorithms
C Program: Bubble Sort in Ascending OrderC Program: Bubble Sort in Descending Order
C Program: Selection Sort in Ascending Order
C Program: Selection Sort in Descending Order
C Program: Insertion Sort in Ascending Order
C Program: Insertion Sort in Descending Order
C Program: Merge Sort in Ascending Order
C Program: Merge Sort in Descending Order
C Program: Quick Sort in Ascending Order
C Program: Quick Sort in Descending Order
C Program: Heap Sort in Ascending Order
C Program: Heap Sort in Descending Order
Structure and Union Programs
C Program to Store Information of a Student Using StructureC Program to Calculate Difference Between Two Time Periods
C Program to Store and Display Information Using Structures with Pointers
Function Programs
C Program to Calculate Area of Rectangle Using FunctionsC Program to Find Roots of a Quadratic Equation Using Functions
C Program to Create Simple Calculator Using Switch Case
C Pattern Programs
- C Number Pattern Programs
- Star Pattern Programs in C Programming
- C Program to Print Palindrome Pyramid Pattern
- C Program to Print Half Pyramid of Numbers
- C Program to Print Diamond Pattern with Numbers
- C Program to Print Alternating Star and Space Pattern
- C Program to Print Cross Star Pattern
- C Program to Print Reverse Pyramid Pattern
- C Program to Print Hollow Right-Angled Triangle
- C Program to Print Heart Shape Pattern
- C Program to Print Left Arrow Star Pattern
- C Program to Print Right Arrow Star Pattern
- C Program to Print Hollow Square Star Pattern
- C Program to Print Hourglass Star Pattern
- C Program to Print Butterfly Pattern
- C Program to Print Sandglass Star Pattern
- C Program to Print Zig-Zag Star Pattern
- C Program to Print Number Pyramid Pattern
- C Program to Print Pascal’s Triangle Pattern
- C Program to Print Square Star Pattern
- C Program to Print Hollow Diamond Pattern
- C Program to Print Hollow Pyramid Pattern
- C Program to Print a Diamond Pattern
- C Program to Print Floyd’s Triangle Pattern
- C Program to Print Right-Angled Triangle Pattern
- C Program to Print an Inverted Pyramid Pattern
- C Program to Print a Star Pyramid Pattern
Comments
Post a Comment
Leave Comment