C Programming Exercises With Solutions

c programming exercises with solutions
This page contains examples of basic to advance C  programs.
  1. INTRODUCTION

  2. C “Hello, World!” Program
  3. C Program to Print Number Entered by User
  4. C Program to Add Two Numbers
  5. C Program to Find Quotient and Remainder
  6. C Program to Find Size of int, float, double and char in Your System
  7. C Program to Swap Two Numbers
  8. C Program to Find ASCII Value of a Character
  9. C Program to Multiply two Numbers
  1. Simple Programs

  2. C Program To Find Area And Circumference Of Circle
  3. C Program To Print Ascii Value Of Character
  4. C Program To Find Area Of Triangle
  5. C Program to Convert a person’s name in Abbreviated
  6. C Program For Calculate A Simple Interest
  7. C Program To Find Greater No. Among given Three Number
  8. C Program To Find The Gross Salary Of An Employee
  9. C Program For Calculate Percentage Of 5 Subjects
  10. C Program For Converting Temperature Celsius Into Fahrenheit
  11. C Program To Display Size Of Different Datatype
  12. C Program To Check Number Is Positive Or Negative
  13. C Program To Find Character Is Vowel Or Not
  14. C Program To Calculate Factorial Of A Given Number
  15. C Program To Read Integer (N) And Print First Three Powers (N^1, N^2, N^3)
  16. C Program To Swap Two Number Without Using Third Variable
  17. C Program To Find The Address Of Variable
  1. Decision & loops

  2. C Program to Check Whether Number is Even or Odd
  3. C Program to Check Whether a character is Vowel or Consonant
  4. C Program to Find Largest Number Among Three Numbers
  5. C Program to Find All Roots of a Quadratic Equation
  6. C Program to Calculate Sum of Natural Numbers
  7. C Program to Check Leap Year
  8. C Program to Find Factorial
  9. C Program to Generate Multiplication Table
  10. C Program to Display Fibonacci Series
  11. C Program to Find GCD
  12. C Program to Find LCM
  13. C Program to Reverse a Number
  14. C Program to Calculate Power of a Number
  15. C Program to Check Whether a Number is Palindrome or Not
  16. C Program to Check Whether a Number is Prime or Not
  17. C Program to Display Prime Numbers Between Two Intervals
  18. C Program to Check Armstrong Number
  19. C Program to Display Armstrong Number Between Two Intervals
  20. C Program to Display Factors of a Number
  21. C Programs To Create Pyramid and Pattern
  22. C Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch…case
  23. C Program To Print A Message Multiple Times Using Loop
  24. C Program Print Truth Table Of XY+Z Using Loop
  25. C Program Convert Decimal Number To Binary Number Using Loop
  26. C Program to Sort Elements in Lexicographical Order (Dictionary Order) Using For Loop
  27. C Program For Denomination of an Amount Using While Loop
  1. FUNCTIONS

  2. C Program to Display Prime Numbers Between Two Intervals Using Functions
  3. C Program to Check Prime Number By Creating a Function
  4. C Program to Check Whether a Number can be Express as Sum of Two Prime Numbers
  5. C program to Find Sum of Natural Numbers using Recursion
  6. C program to Calculate Factorial of a Number Using Recursion
  7. C Program to Find G.C.D Using Recursion
  8. C Program to Convert Binary Number to Decimal and vice-versa
  9. C Program to Convert Octal Number to Decimal and vice-versa
  10. C Program to Convert Binary Number to Octal and vice-versa
  11. C program to Reverse a Sentence Using Recursion
  12. Reversing a List
  13. C Program to Calculate Power Using Recursion
  14. C Program To Find Cube Of Any Number Using Functions
  15. C Program To Perform All Arithmetic Operations Using Functions
  16. C Program To Find Fibonacci Series Using Functions
  17. C Program To Swap Two Numbers Using Functions
  18. C Program To Swap Two Numbers Without Using Third Variable Using Functions
  19. C Program to Calculate Standard Deviation Using Function
  1. Arrays & Strings

  2. C Program To Convert A Lower Case To Upper Case using string
  3. C Program To Print Reverse A Sentence using string
  4. C Program To Print A Full String Input By Keyboard using string
  5. C Program To Check String Is Palindrome Or Not
  6. C Program To Find The Length Of Any String
  7. C Program To Compare Two String
  8. C Program To Copy One String To Another
  9. C Program To Display Sring From Backward
  10. C Program For Count A Words In Given String Even Enter No Of Space’s Between String
  11. C Program to Calculate Average of Numbers Using Arrays
  12. C Program to Find Largest Element of an Array
  13. C Program to Calculate Standard Deviation
  14. C Program to Add Two Matrix Using Multi-dimensional Arrays
  15. C Program to Multiply Two Matrix Using Multi-dimensional Arrays
  16. C Program to Find Transpose of a Matrix
  17. C Program to Multiply two Matrices by Passing Matrix to Function
  18. C Program to Access Elements of an Array Using Pointer
  19. C Program to Swap Numbers in Cyclic Order Using Call by Reference
  20. C Program to Find the Frequency of Characters in a String
  21. C Program to Find the Number of Vowels, Consonants, Digits and White Spaces in a String
  22. C Program to Remove all Characters in a String Except Alphabets
  23. C Program to Find the Length of a String
  24. C Program to Concatenate Two Strings
  25. C Program to Copy Strings
  26. C Program to Sort Elements in Lexicographical Order (Dictionary Order)
  27. C Program To Print All Value Of An Array
  28. C Program To Print Reverse Order And Print Sum Of Its Element Of An Array
  29. C Program To Check Evenness / Oddness Of An Array
  30. C Program To Check Positive / Negative Number Of An Array
  31. C Program To Check Primeness Of An Array
  32. C Program Sum Of Even-Positive, Even-Negative, Odd-Positive, Odd-Negative Of An Array
  33. C Program To Check An Array Is Armstrong Or Not
  34. C Program To Sort An Array Using BUBBLE SORT TECHNIQUE
  35. C Program To Sort An Array Using SELECTION SORT TECHNIQUE
  36. C Program To Merge Two Array Into Third Array Unconditionally
  37. C Program To Merge One Ascending And Another One Is Descending Array In Third Array Should be Descending Order
  38. C Program To Find Row In An Array That Includes The Greatest Amount Of Even Number
  39. C Program To Reverse An Array In O(n)
  40. C Program To Find The Union And Intersection Of Two Sorted Array In Increasing Order
  41. C Program To Find Duplicate Element In Array Time Complexity O(n), Space Complexity O(1)
  1. Class Programs

  2. C Program For Infix to Postfix Expression Convert
  1. Structures

  2. C Program to Store Information of a Student in a Structure
  3. C Program to Add Two Distances (in inch-feet) System Using Structures
  4. C Program to Add Complex Numbers by Passing Structure to a Function
  5. C Program to Calculate Difference Between Two Time Period
  6. C Program to Store and Display Information Using Structure
  7. C Program For Employee Information Using Nested Structure
  8. C Program For Book Details Using Structure
  1. Operator overLoading

  2. Increment ++ and Decrement — Operator Overloading in C Programming
  3. C Program to Subtract Complex Number Using Operator Overloading
  1. If / Else Statement Programs

  2. C Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit Or A Special Symbol
  3. C Program To Find Greatest Among Three Numbers
  4. C Program To Check Number Is Armstrong Or Not Using If/Else Statements
  5. C Program To Find Character Is Vowel Or Not Using If/Else Statements
  6. C Program To Check Number Is Even Or Odd Using If/Else Statements
  7. C Program To Check Number Is Prime Or Not Using If/Else Statements
  8. C Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit or A Special Symbol Using If/Else Statements
  9. C Program To Find Quotient And Reminder Of Two Numbers Using If/Else Statements
  10. C Program To Convert A Lowercase Alphabet To Uppercase Alphabet Or Vice-Versa Using If/Else Statements
  11. C Program To Find Max Number Among Given Three Number Using If/Else Statements
  12. C Program To Check Year Is Leap Year Or Not Using If/Else Statements
  13. C Program To Find The HCF Or LCM Of Two Number Using If/Else Statement
  14. C Program To Check Expression Parenthesis Is Valid Or Not Using If/Else Statements
  15. CProgram To Check Age Between 40 To 60 Using If/Else Statements
  16. C Program To Count Letters, Space, Digits, And Others Using If/Else Statements
  17. CProgram To Check Date Validation (Valid Or Not) Using If/Else Statements
  18. C Program To Determine Whether The Seller Made Profit or Loss. Also, Determine How Much Profit or Loss He Made
  1. Switch Case programs

  2. C Program For Temperature Conversion Celcius To Fahrenheit And Vice Versa Using Switch Case
  3. C Program To Find A Grade Of Given Numbers Using Switch Case
  4. C Program To Perform All Arithnatic Operations Ie:-(a+b,a-b,a*b,a/b,a%b) Using Switch Case
  5. C To Program Calculate Area Of Circle Rectangle And Triangle Using Switch Case
  6. C Program For Finding A Grade Using Switch Case
  1. Pointer Programs

  2. C Program To Find Number Is Even / Odd Using Pointer
  3. C Program To Read Infinite Number Then Arrange Ascending Order Using Pointer
  4. C Program To Average Of Array Function Of Using Pointer
  5. C Program For Swapping Two Number In Function Using Pointer
  6. C Program To Print Address Of Pointer Of An Array Using Pointer
  1. File Handling Programs

  2. C Program To Read A Line By Line And Write Line By Line Using File
  3. C Program For Reading A No. From File And Sum Of No. Line By Line Using File
  4. C Program For Count A Character In File Using File
  5. C Program To Display The List Of Current Directory/Folder Using File
  6. C Program For Copy One File To Another Using File Handling
  7. C Program To Merge Two File Into the Third File Using File Handling
  1. Series Programs

  2. C Program To Find Sum Of Series 1 + 1 / 2 ^ 2 + 1 / 3 ^ 3 + . . . . . . . . . . . . 1 / n ^ n
  3. C Program To Find Sum Of Series 1 + 2 + 3 + 4 + 5 + 6 . . . . . . . . . . . . . . . . n
  4. C Program To Find Sum Of Series x + x ^ 2 / 2 + x ^ 3 / 3 + x ^ 4 / 4 + . . . . . . . . . x ^ n / n
  5. C Program To Find Sum Of Series 1 / 2 + 4 / 5 + 7 / 8 + . . . . . . . . .n
  6. Singly Linked List
  7. C Program To Find Sum Of Series 1 + x ^ 1 + x ^ 2 + x ^ 3 + . . . . . . . . . x ^ n
  8. C Program To Find Sum Of Series 1 ^ 2 + 3 ^ 2 + 5 ^ 2 + . . . . . . . . . . . n ^ 2
  9. C Program To Find Sum Of Series 1 + 2 + 4 + 8 + 1 + 32 + . . . . . . . . n
  10. C Program To The Print Given Series 1 -4 7 -10 . . . . . . . . . . . -40
  11. C Program To Print A Given Pattern Or Series Like 12345, 5432, 234, 43, 3
  1. Pattern Programs

  2. C Program To Print A Pascal Triangle
  3. C Program To Print A Given STAR Pattern
  4. C Program To Print A Given Reverse STAR Pattern
  5. C Program To Print Half Pyramid Using *
  6. C Program To Print Reverse Half Pyramid Using *
  7. C Program To Print Flip Pattern Of Half Pyramid Using *
  8. C Program To Print Flip Pattern Of Reverse Half Pyramid Using *
  9. C Program To Print Diamond Pattern Using *
  10. C Program To Print Half Pyramid Using Number
  11. C Program To Print Half Pyramid Using Similar Number In Row
  12. C Program To Print Half Pyramid Using Alphabet
  13. C Program To Print REVERSE Of Half Pyramid Using Alphabet
  14. C Program To Print INDIA Pattern As Given Below
  15. C Program To Print Half Pyramid Alternative Using ( * ) Star And Alphabet
  16. C Program To Print Perfect Square Of Program Using Sleep And Delay Function
  17. C Program To Print Heart Pattern Program Using Star
  18. C Program For Draw A Perfect Christmas Tree
  19. C Program To Print A Given Pattern Or Series Like 12345, 5432, 234, 43, 3
  1. Sorting Programs

  2. C program To bubble Sort Using Dynamic Array
  3. C Program To Insertion Sort Using Dynamic ArrayK
  4. C Program To Heap Sort Using Dynamic Array
  5. C Program To Quick Sort Using Dynamic Array
  6. C Program Selection Sort Using Dynamic Array
  7. C program For Radix Sort Using Dynamic Array
  1. Searching Programs

  2. C Program To Binary Search Using Dynamic Array

Disclaimer: The above  C  programs are generated by Different sources but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes. Authority if any of the queries regarding this post or website fill the following contact form thank you.

c programming exercises with solutions for beginners | c programming exercises with solutions free download challenging c programs with solutions | c programming coding questions and answers | c programming examples with output |basic c programs
| basic c programs for interview |c programming assignments with solutions

Scroll to Top