C Language Practice Programs [300 Programs]

List of C Language Practice Programs:

Here is the list of C Language practice programs we have covered so far. This list is constantly updated.

Basic C Programs

  1. C Program to perform all Arithmetic Operations
  2. C Program to calculate Size and Limits of all C Datatypes
  3. C Program to Swap Two numbers [With and without temporary variable ]
  4. C Program to Swap the Nibbles of Character
  5. C Program to Calculate Largest of two numbers using conditional operator
  6. C program to Convert temperature from centigrade to Fahrenheit
  7. C Program to understand Pre increment and Pre decrement Operators
  8. C Program to understand Type Conversion
  9. C Program to Print All ASCII Charcters and ASCII Values
  10. C Program to Calculate Area of Circle
  11. C Program to Calculate Area of Triangle
  12. C Program to calculate Perimeter and Area of Rectangle
  13. C program to calculate Simple Interest
  14. C Program to Find Roots of quadratic equation in C Language
  15. Program to Calculate Size of Datatypes in C
  16. C Program to understand float arithmetics
  17. C Program to Basic Input and Output of datatypes with Format specifiers

If else statement Practice Programs:

  1. C Program to check whether a number is Even or Odd
  2. C Program to check Positive or Negative number or Zero
  3. C Program to Print the Larger Number of Two Numbers
  4. C Program to check character is Alphabet or Number of Special Number
  5. C Program to Calculate the Minimum of Three Numbers
  6. C Program to find the Biggest number from Three Numbers (Maximum)
  7. C Program to calculate the Roots of a Quadratic Equation
  8. C Program to Calculate the Remainder and Quotient
  9. C Program to check given Year is Leap Year or Not
  10. C program to calculate the Grade of Student using Percentage
  11. C Program to find the Number of days in Month
  12. C Program to check character is Vowel or Consonant
  13. C Program to check character is Uppercase or Lowercase
  14. C Program to get day of week given week Number

Switch Case Practice Programs:

  1. C Program to Perform arithmetic Operations using Switch Statement
  2. C Program to Check the Sign of the Number ( Positive, Negative, or Zero) Using Switch Case
  3. C Program to find whether the alphabet is a Vowel or Consonant using Switch Case
  4. Enter the week number and print the day of week program Using Switch Statement
  5. C Program to calculate the Number of days in Month using the switch statement
  6. C Program to check Even or Odd Number using Switch Case
  7. C Program to find the maximum of two numbers using a switch case
  8. Must Practise: Menu Driven Calculator Program using Switch Case and Do while

C Loops Practice Programs:

  1. C Program to Print Numbers up to n ( user-provided number)
  2. C Program to Print Numbers in Reverse Order
  3. C Program to Calculate Sum of First N natural numbers
  4. C Program to Reverse a Number
  5. C Program to Calculate Sum of Digits of a Number
  6. C Program to Calculate Product of Digits of a Number
  7. C Program to Count the number of Digits of a Number
  8. C Program to Multiply without using Multiplication operator (*)
  9. C Program to generate Fibonacci Series up to a given number
  10. C Program to Print First n Fibonacci numbers
  11. C Program to get Nth Fibonacci number
  12. C Program to Check number is Prime Number or not?
  13. C Program to Check Prime Number using Square Root (Sqrt) Method
  14. C Program to Print Prime Numbers between Two numbers
  15. C Program to print First N Prime numbers
  16. C Program to generate Prime numbers up to N
  17. C Program to Calculate Nth Prime Number
  18. C Program Check Prime Number [Mutliple Methods]
  19. C Program to Convert Decimal Number to Binary Number
  20. C Program to Convert Binary Number to Decimal Number
  21. C Program to Convert Octal Number to Decimal Number
  22. C Program to Calculate the Factorial of Number
  23. C Program to Calculate the Power of Number
  24. C Program to Check Number is Power of 2
  25. C Program to find power of number without Loops
  26. C Program to Find all Factors of a Number
  27. C Program to find all Prime Factors of number 
  28. C Program to Calculate the GCD or HCF of Two Number
  29. C Program to Calculate the LCM of two Numbers
  30. C Program to Check Palindrome Number
  31. C Program to Check 3-Digit and N-Digit Armstrong Number
  32. C Program to Generate Armstrong Numbers upto N ( User-Provided Number)
  33. C Program to Generate Armstrong Numbers between two Intervals
  34. C Program to Generate Nth Armstrong Number
  35. C Program to Generate Multiplication Tables

Patterns Programs – ( Star, Number, Pyramid, Rhombus, Triangle, etc):

  1. List: Star and Number Pattern Programs [ Triangles, Pyramids, Rhombus, etc ]

C Functions Practice Programs:

  1. C Program to Perform Arithmetic Operations using functions
  2. Add Two Numbers using Functions in C
  3. C Program to calculate Fibonacci Series using function
  4. C Program to find Factorial of a Number using functions
  5. C Program to find Minimum and Maximum numbers using Functions
  6. Armstrong Number using Function in C language
  7. Prime number program using Function
  8. Program to Caclulate Area of Circle using Function
  9. Program to Check Even or Odd number using Function
  10. Binary to Decimal Conversion using function in C

Recursion Practice Programs in C:

  1. C Program to Calculate the Factorial of a Number using Recursion
  2. C Program to generate Fibonacci series using Recursion
  3. C Program to print first N Natural Numbers using Recursion
  4. C Program to calculate the sum of N Natural Numbers using Recursion
  5. C Program to calculate the Product of N Natural Numbers using Recursion
  6. C Program to Count the Number of digits in a Number using Recursion
  7. C Program to Calculate the Sum of Digits using Recursion
  8. C Program to Product the Number of digits in a Number using Recursion
  9. C Program to Reverse a Number using Recursion.
  10. C Program to check whether the number is Palindrome using Recursion
  11. C Program to Calculate LCM using Recursion.

Arrays Practice Programs in C Language:

  1. C Program to Read and Print Arrays
  2. Reverse Print Array Program in C
  3. C Program to calculate Sum of all array Elements
  4. C Program to Calculate the Average of all array Elements
  5. C Program to find minimum element in Array
  6. C Program to Find Maximum Element in Array
  7. C Program to Find Second Largest Element in Array
  8. C Program to Insert an element in Array
  9. C Program to Delete an Element in Array
  10. C Program to Find Unique Elements in an Array
  11. C Program to calculate the total number of Positive numbers, Negative numbers, and Zeros in an Array
  12. C Program to Count Even and Odd numbers in Array
  13. C Program to Delete Duplicate Elements from Sorted Array
  14. C Program to Reverse the Array Elements
  15. C Program to Reverse Array Elements using Recursion
  16. C Program to Sort Array Elements in Ascending order
  17. C Program to Sort Array in Ascending and Descending Order using QSort function
  18. C Program to Count Number of Unique Elements in Array
  19. C Program to Merge Two Arrays
  20. C Program to Merge Two Sorted Array and Generate Sorted Array
  21. C Program to Copy array to Another Array
  22. C Program to Find Second Smallest Element in Array
  23. C Program to Delete Duplicate Elements in an Array
  24. C Program to Left Rotate Array by ‘N’ Times
  25. C Program to Right Rotate Array Elements by ‘N’ Positions
  26. Linear Search in C Language with Example Programs
  27. C Program to Count Frequencies of Each Element in the Array

Matrix Practice Programs in C ( 2D-Array Programs):

  1. C Program to Read and Print Matrix or 2D Array
  2. C Program to demonstrate How to Pass 2D Array to Functions
  3. C Program to Multiplication of two Matrices
  4. C Program to Add Two Matrices
  5. C Program to Subtract Two Matrices
  6. C Program to Calculate the Transpose of Matrix
  7. C Program to Check Two Matrices are Equal
  8. C Program to Check Multiplicability of Two Matrices
  9. C Program to Check a Sparse Matrix
  10. Matrix and Scaler Multiplication Program in C
  11. Program to Check Identity Matrix in C Language
  12. Program to Check Symmetric Matrix in C
  13. Print Diagonal Elements of Matrix in C Language
  14. Sum of Diagonal Elements of Matrix in C Language

String Programs in C Language:

  1. C Program to Calculate Length of the String
  2. C Program to Copy a String to New String
  3. C Program to Concatenate Two Strings
  4. C Program to Compare Two Strings
  5. Count the Number of Vowels, Consonants, Digits, and Special characters in String
  6. C Program to Count Alphabets, Digits, Whitespaces in String
  7. C Program to Convert Lower case string to Upper case string
  8. C Program to Convert Uppercase string to Lowercase string
  9. C Program to Reverse a String
  10. C Program to Check Palindrome String
  11. C Program to Toggle Case of All Characters in String
  12. C Program to Remove Leading Whitespaces in a String
  13. C Program to Remove Trailing Whitespaces in a String
  14. C Program to Remove Extra Spaces between the Words in String
  15. C Program to Remove All Whitespaces in a String or Sentence
  16. C Program to Count Frequencies of each character in a string
  17. C Program to Find Highest Frequency character in a String
  18. C Program to Find Lowest Frequency Character in a String
  19. C Program to Remove Vowels from a String
  20. C Program to Remove Consonants from a String
  21. C Program to Sort String in Ascending order
  22. C Program to Sort String in Descending Order
  23. Sort String in Ascending and Descending order using Qsort()
  24. C Program to Count Number of Words in a String
  25. C Program to Implement Custom atoi() function
  26. Anagram Program in C – Check two strings are anagrams
  27. C Program to Find First Occurrences of a character in a String
  28. C Program to Find Last Occurrences of a character in a string
  29. C Program to Find All Occurrences of a character in string
  30. C Program to Count All Occurrences of character in string
  31. C Program to Swap two strings
  32. C Program to Search for substring in a String
  33. C Program to Find Last Occurrence of Substring/Word in a String
  34. C Program to Find All Occurrences of Substring in a String
  35. C Program to Count All Occurrences of Substring in a String
  36. Custom strstr() function implementation in C

String Library Functions:

  1. strlen library function in C
  2. strcpy library function in C with Example Programs
  3. strcat library function in C
  4. strcmp library function in C
  5. strchr library function in C
  6. strstr library function in C

C-Language-Practice-Programs

More Programs:

C Tutorials Index:

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

44 Responses

  1. […] C Programs […]

  2. […] C Programs […]

  3. […] C Programs […]

  4. […] C Programs […]

  5. […] C Programs […]

  6. […] C Programs […]

  7. […] C Programs […]

  8. […] C Programs […]

  9. […] C Programs […]

  10. […] C Programs […]

  11. […] C Programs […]

  12. […] C Programs […]

  13. […] C Programs […]

  14. […] C Programs […]

  15. […] C Programs […]

  16. […] C Programs […]

  17. […] C Programs […]

  18. […] C Programs […]

  19. […] C Programs […]

  20. […] C Programs […]

  21. […] C Programs […]

  22. […] C Programs […]

  23. […] C Programs […]

  24. […] C Programs […]

  25. […] C Programs […]

  26. […] C Programs […]

  27. […] C Programs […]

  28. […] C Programs […]

  29. […] C Programs […]

  30. […] C Programs […]

  31. […] C Programs […]

  32. […] C Programs […]

  33. […] C Programs […]

  34. […] C Programs […]

  35. […] C Programs […]

  36. […] C Programs […]

  37. […] C Programs […]

  38. […] C Programs […]

  39. […] C Programs […]

  40. […] C Programs […]

  41. […] C Programs […]

  42. […] C Programs […]

  43. […] C Programs […]

  44. […] C Programs […]

Leave a Reply