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 Convert a person’s name in Abbreviated
  4. C Program For Calculate A Simple Interest
  5. C Program To Find Greater No. Among given Three Number
  6. C Program To Find The Gross Salary Of An Employee
  7. C Program For Calculate Percentage Of 5 Subjects
  8. C Program For Converting Temperature Celsius Into Fahrenheit
  9. C Program To Display Size Of Different Datatype
  10. C Program To Check Number Is Positive Or Negative
  11. C Program To Find Character Is Vowel Or Not
  12. C Program To Calculate Factorial Of A Given Number
  13. C Program To Read Integer (N) And Print First Three Powers (N^1, N^2, N^3)
  14. C Program To Swap Two Number Without Using Third Variable
  15. 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 Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch…case
  22. C Program To Print A Message Multiple Times Using Loop
  23. C Program Print Truth Table Of XY+Z Using Loop
  24. C Program Convert Decimal Number To Binary Number Using Loop
  25. C Program to Sort Elements in Lexicographical Order (Dictionary Order) Using For Loop
  26. 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 Swap Numbers in Cyclic Order Using Call by Reference
  19. C Program to Find the Frequency of Characters in a String
  20. C Program to Find the Number of Vowels, Consonants, Digits and White Spaces in a String
  21. C Program to Remove all Characters in a String Except Alphabets
  22. C Program to Find the Length of a String
  23. C Program to Copy Strings
  24. C Program To Print All Value Of An Array
  25. C Program To Check Primeness Of An Array
  26. C Program To Check An Array Is Armstrong Or Not
  27. C Program To Sort An Array Using BUBBLE SORT TECHNIQUE
  28. C Program To Sort An Array Using SELECTION SORT TECHNIQUE
  29. C Program To Merge Two Array Into Third Array Unconditionally
  30. C Program To Merge One Ascending And Another One Is Descending Array In Third Array Should be Descending Order
  31. C Program To Find Row In An Array That Includes The Greatest Amount Of Even Number
  32. C Program To Reverse An Array In O(n)
  33. C Program To Find The Union And Intersection Of Two Sorted Array In Increasing Order
  34. 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. 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

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