C
C Programs | C Programming Example with Outputs
156 lessons10 sections
C Basics Programs
- 1C Program to Print Hello World
- 2C Program to check whether a Date is Valid or not
- 3C Program to calculate Simple Interest
- 4C Program to Find the Size of int, float, double and char
- 5C Program to find Cosine value
- 6C Program to Print ASCII Value of a Character
- 7C Program to check whether a year is a Leap year or not
- 8C Program to Convert Fahrenheit to Celsius
- 9C Program to Calculate the Area and Circumference of a Circle
- 10C Program to Find the Area of a Rectangle
- 11C Program to Find the Largest of three Numbers
- 12C Program to Multiply two numbers using Addition operator
- 13C Program to check whether a Number is Binary or Not
- 14Menu Driven Program using Switch Case in C
- 15Currency Conversion Program in C
C Numbers Programs
- 1C Program to Check Whether Number is Even or Odd (Condition and Ternary Operator)
- 2Magic Number in C
- 3C Program to Swap Two Numbers without using Third Variable
- 4C Program to Swap Two Numbers
- 5C Program to Add Two Numbers using Pointers
- 6C Program to Find Roots of a Quadratic Equation
- 7C Program to Check Whether a Given Number is Prime or Not
- 8C program to Print Prime Numbers in a Given Range (max & min)
- 9C Program to Print Prime Numbers up to a Given Number
- 10Factorial Program in C using Function
- 11C Program to Find Factorial of a Number using Recursion
- 12C Program to Find Quadrant of a given Co-Ordinate
- 13C Program to Count the Number of Digits in an Integer
- 14C Program to Reverse a Number using Loops
- 15C Program to Reverse a given Number using Recursive Function
- 16C Program to Print Natural Numbers in Reverse from n to 1
- 17C Program to Print Natural Numbers in Reverse order with a difference of 2
- 18Sum of digits of a Number in C
- 19C Program to Check Whether a Number is Palindrome or Not
- 20C Program to Generate Fibonacci Series
- 21C Program to Find Sum of First and Last Digit of any Number
- 22C Program to Find the GCD and LCM of Two Integers
- 23C Program to Find LCM of two Numbers
- 24C Program to Find GCD of two Numbers
- 25C Program to Convert Number to Words
- 26C Program to Generate Random Numbers
- 27C Program to Generate Random numbers within a Range
- 28C Program to Reverse a Number using for loop
- 29C Program to Print Multiplication Table
C Special Number Programs
- 1C Program to Print all Magic Number till N
- 2C Program to Check Armstrong Number
- 3C Program for Pascal Triangle
- 4C Program for Strong Number
- 5C Program to Check the Number is a Neon Number or Not
- 6Fizz Buzz Program in C
- 7Automorphic Number Program in C
- 8Happy Number Program in C
- 9Sunny Number Program in C
- 10Peterson Number in C
- 11Fascinating Number Program in C
- 12Keith Number Program in C
Searching and Sorting Algorithm in C
- 1Binary Search in C
- 2Binary Search Tree Program in C
- 3C Program to Implement Bubble Sort
- 4C Program for implementation of Selection sort
- 5Implement Insertion sort Program in C
- 6Implementation of HeapSort Algorithm in C
- 7Implementation of Quick SortAlgorithm in C
- 8C Program to Implement Merge Sort
- 9Implementation of Shell Sort Algorithm in C
C Conversion Programs
- 1C Program to Convert Binary to Decimal
- 2C Program to Convert Decimal to Binary
- 3C Program to Convert Octal to Binary
- 4C Program to Convert Binary to Octal
- 5C Program to Convert Decimal to Octal using Recursion and Loop
- 6C Program to Convert Octal to Decimal
- 7C Program to Convert Decimal to Hexadecimal
- 8C Program to convert Hexadecimal to Decimal
- 9C Program to Convert Binary to Hexadecimal
- 10C Program to Convert Hexadecimal to Binary
- 11C Program to Convert Octal to Hexadecimal
- 12C Program to Convert Hexadecimal to Octal
C Array Programs
- 1C Program for Matrix Addition
- 2C Program to Multiply Two Matrices
- 3C Program to Search an Element in an Array
- 4C Program to find the sum of all elements in an Array
- 5C Program to Access an element in 2-D Array
- 6C Program to find the Largest and Smallest element in Array
- 7C Program to Find Second Largest Number in an Array
- 8Program to Reverse the Array Elements in C
- 9C Program for deletion of an element from the specified location from Array
- 10C Program to Delete a Particular element from an Array
- 11C Program to Find Sum of Diagonal elements in a Matrix
- 12C Program to Find Inverse of a Matrix
- 13C Program to Find Transpose of a Matrix
C Strings Programs
- 1C String – strlen() function
- 2C String – strcpy() function
- 3C String – strcat() function
- 4C String – strcmp() function
- 5C String – strrev() function
- 6C String – strlwr() function
- 7C String – strupr() function
- 8C String – strchr() function
- 9C Program to Reverse a String
- 10C Program to Check whether the entered character is capital, small letter, digit or special character
- 11C Program to Convert Uppercase to Lowercase and Vice Versa in a string
- 12C Program to check for String Palindrome without using string functions
- 13C Program to Check if a Given String is a Palindrome
- 14C Program to Compare two Strings using strcmp()
- 15C Program to Find Length of a String Using strlen() Function
- 16C Program to Find the Length of a String without using Function strlen()
- 17C Program to Find the Frequency of Characters in a String
- 18C Program to sort a String in Ascending order
C Files Programs
- 1C Program to create a File & write Data in it
- 2C Program to Copy Contents of one file to another
- 3C Program to Append Data to a Text file
- 4C Program to Merge Two Files
- 5C Program to Read the First Line From a File
- 6C Program to Count the Number of Lines in a File
- 7C Program to Count the Number of Characters Words and Lines in a file
C Pattern Programs
- 1C Program to Print Pascal Triangle
- 2C Program to print Floyd’s Triangle
- 3C Program to print Odd Number Pattern
- 4Diagonal Number Pattern in C
- 5Hourglass number Pattern in C
- 6Full Pyramid Number Pattern in C
- 7Half Pyramid Number Pattern in C
- 8Left Half Pyramids in C using Numbers
- 9Half Hourglass Number pattern in C
- 10Half Diamond number pattern in C
- 11Half Pyramid Star Pattern in C
- 12Diamond Shape Star Pattern in C
- 13Half Diamond Star Pattern in C
- 14Hourglass Star Pattern in C
- 15C Program to print Half Hourglass Star pattern
- 16Hollow Triangle Star Pattern in C
- 17Square Star pattern in C
- 18Rectangle Star Pattern in C
- 19Full Pyramid Pattern Program in C using Stars
- 20Diagonal Star Pattern in C
- 21Inverted hollow Triangle Star pattern in C
- 22C Program to Print Pyramid Pattern of Alphabets
- 23Half Hourglass Alphabet Pattern in C
- 24Full hourglass pattern of Alphabets in C
- 25Square Pattern of any Character in C
- 26Inverted Half Pyramid Pattern of Alphabets in C
- 27Half Pyramid of Alphabets in C
- 28Half Diamond Pattern in C using Alphabets
- 29Program to Print Diamond Alphabet Patterns in C
- 30String Pattern Programs in C
- 31Algorithm and Flowchart to find Factorial of a number
- 32Algorithm and Flowchart to find Fibonacci series
Important Algorithms in C
- 1Dining Philosophers problem in C
- 2Round Robin Scheduling in C
- 3Bit Stuffing Program in C
- 4Kruskal’s Algorithm in C
- 5C Program for Predictive Parser
- 6LRU Page Replacement Algorithm in C
- 7Implementation of Stack Using Array in C Program
- 8C Program for Simultaneous Equations
- 9Infix to Postfix Conversion in C Program using Stack
