C Programming Exercises With Solutions

chase2learn.com
6 min readOct 16, 2021

--

  • INTRODUCTION
  1. C “Hello, World!” Program
  2. C Program to Print Number Entered by User
  3. C Program to Add Two Numbers
  4. C Program to Find Quotient and Remainder
  5. C Program to Find Size of int, float, double and char in Your System
  6. C Program to Swap Two Numbers
  7. C Program to Find ASCII Value of a Character
  8. C Program to Multiply two Numbers
  • Simple Programs
  1. C Program To Find Area And Circumference Of Circle
  2. C Program to Convert a person’s name in Abbreviated
  3. C Program For Calculate A Simple Interest
  4. C Program To Find Greater No. Among given Three Number
  5. C Program To Find The Gross Salary Of An Employee
  6. C Program For Calculate Percentage Of 5 Subjects
  7. C Program For Converting Temperature Celsius Into Fahrenheit
  8. C Program To Display Size Of Different Datatype
  9. C Program To Check Number Is Positive Or Negative
  10. C Program To Find Character Is Vowel Or Not
  11. C Program To Calculate Factorial Of A Given Number
  12. C Program To Read Integer (N) And Print First Three Powers (N¹, N², N³)
  13. C Program To Swap Two Number Without Using Third Variable
  14. C Program To Find The Address Of Variable
  • Decision & loops
  1. C Program to Check Whether Number is Even or Odd
  2. C Program to Check Whether a character is Vowel or Consonant
  3. C Program to Find Largest Number Among Three Numbers
  4. C Program to Find All Roots of a Quadratic Equation
  5. C Program to Calculate Sum of Natural Numbers
  6. C Program to Check Leap Year
  7. C Program to Find Factorial
  8. C Program to Generate Multiplication Table
  9. C Program to Display Fibonacci Series
  10. C Program to Find GCD
  11. C Program to Find LCM
  12. C Program to Reverse a Number
  13. C Program to Calculate Power of a Number
  14. C Program to Check Whether a Number is Palindrome or Not
  15. C Program to Check Whether a Number is Prime or Not
  16. C Program to Display Prime Numbers Between Two Intervals
  17. C Program to Check Armstrong Number
  18. C Program to Display Armstrong Number Between Two Intervals
  19. C Program to Display Factors of a Number
  20. C Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch…case
  21. C Program To Print A Message Multiple Times Using Loop
  22. C Program Print Truth Table Of XY+Z Using Loop
  23. C Program Convert Decimal Number To Binary Number Using Loop
  24. C Program to Sort Elements in Lexicographical Order (Dictionary Order) Using For Loop
  25. C Program For Denomination of an Amount Using While Loop
  • FUNCTIONS
  1. C Program to Display Prime Numbers Between Two Intervals Using Functions
  2. C Program to Check Prime Number By Creating a Function
  3. C Program to Check Whether a Number can be Express as Sum of Two Prime Numbers
  4. C program to Find Sum of Natural Numbers using Recursion
  5. C program to Calculate Factorial of a Number Using Recursion
  6. C Program to Find G.C.D Using Recursion
  7. C Program to Convert Binary Number to Decimal and vice-versa
  8. C Program to Convert Octal Number to Decimal and vice-versa
  9. C Program to Convert Binary Number to Octal and vice-versa
  10. C program to Reverse a Sentence Using Recursion
  11. Reversing a List
  12. C Program to Calculate Power Using Recursion
  13. C Program To Find Cube Of Any Number Using Functions
  14. C Program To Perform All Arithmetic Operations Using Functions
  15. C Program To Find Fibonacci Series Using Functions
  16. C Program To Swap Two Numbers Using Functions
  17. C Program To Swap Two Numbers Without Using Third Variable Using Functions
  18. C Program to Calculate Standard Deviation Using Function
  • Arrays & Strings
  1. C Program To Convert A Lower Case To Upper Case using string
  2. C Program To Print Reverse A Sentence using string
  3. C Program To Print A Full String Input By Keyboard using string
  4. C Program To Check String Is Palindrome Or Not
  5. C Program To Find The Length Of Any String
  6. C Program To Compare Two String
  7. C Program To Copy One String To Another
  8. C Program To Display Sring From Backward
  9. C Program For Count A Words In Given String Even Enter No Of Space’s Between String
  10. C Program to Calculate Average of Numbers Using Arrays
  11. C Program to Find Largest Element of an Array
  12. C Program to Calculate Standard Deviation
  13. C Program to Add Two Matrix Using Multi-dimensional Arrays
  14. C Program to Multiply Two Matrix Using Multi-dimensional Arrays
  15. C Program to Find Transpose of a Matrix
  16. C Program to Multiply two Matrices by Passing Matrix to Function
  17. C Program to Swap Numbers in Cyclic Order Using Call by Reference
  18. C Program to Find the Frequency of Characters in a String
  19. C Program to Find the Number of Vowels, Consonants, Digits and White Spaces in a String
  20. C Program to Remove all Characters in a String Except Alphabets
  21. C Program to Find the Length of a String
  22. C Program to Copy Strings
  23. C Program To Print All Value Of An Array
  24. C Program To Check Primeness Of An Array
  25. C Program To Check An Array Is Armstrong Or Not
  26. C Program To Sort An Array Using BUBBLE SORT TECHNIQUE
  27. C Program To Sort An Array Using SELECTION SORT TECHNIQUE
  28. C Program To Merge Two Array Into Third Array Unconditionally
  29. C Program To Merge One Ascending And Another One Is Descending Array In Third Array Should be Descending Order
  30. C Program To Find Row In An Array That Includes The Greatest Amount Of Even Number
  31. C Program To Reverse An Array In O(n)
  32. C Program To Find The Union And Intersection Of Two Sorted Array In Increasing Order
  33. C Program To Find Duplicate Element In Array Time Complexity O(n), Space Complexity O(1)
  • Class Programs
  1. C Program For Infix to Postfix Expression Convert
  • Structures
  1. C Program to Store Information of a Student in a Structure
  2. C Program to Add Two Distances (in inch-feet) System Using Structures
  3. C Program to Add Complex Numbers by Passing Structure to a Function
  4. C Program to Calculate Difference Between Two Time Period
  5. C Program to Store and Display Information Using Structure
  6. C Program For Employee Information Using Nested Structure
  7. C Program For Book Details Using Structure
  • If / Else Statement Programs
  1. C Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit Or A Special Symbol
  2. C Program To Find Greatest Among Three Numbers
  3. C Program To Check Number Is Armstrong Or Not Using If/Else Statements
  4. C Program To Find Character Is Vowel Or Not Using If/Else Statements
  5. C Program To Check Number Is Even Or Odd Using If/Else Statements
  6. C Program To Check Number Is Prime Or Not Using If/Else Statements
  7. C Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit or A Special Symbol Using If/Else Statements
  8. C Program To Find Quotient And Reminder Of Two Numbers Using If/Else Statements
  9. C Program To Convert A Lowercase Alphabet To Uppercase Alphabet Or Vice-Versa Using If/Else Statements
  10. C Program To Find Max Number Among Given Three Number Using If/Else Statements
  11. C Program To Check Year Is Leap Year Or Not Using If/Else Statements
  12. C Program To Find The HCF Or LCM Of Two Number Using If/Else Statement
  13. C Program To Check Expression Parenthesis Is Valid Or Not Using If/Else Statements
  14. CProgram To Check Age Between 40 To 60 Using If/Else Statements
  15. C Program To Count Letters, Space, Digits, And Others Using If/Else Statements
  16. CProgram To Check Date Validation (Valid Or Not) Using If/Else Statements
  17. C Program To Determine Whether The Seller Made Profit or Loss. Also, Determine How Much Profit or Loss He Made
  • Switch Case programs
  1. C Program For Temperature Conversion Celcius To Fahrenheit And Vice Versa Using Switch Case
  2. C Program To Find A Grade Of Given Numbers Using Switch Case
  3. C Program To Perform All Arithnatic Operations Ie:-(a+b,a-b,a*b,a/b,a%b) Using Switch Case
  4. C To Program Calculate Area Of Circle Rectangle And Triangle Using Switch Case
  5. C Program For Finding A Grade Using Switch Case
  • Pointer Programs
  1. C Program To Find Number Is Even / Odd Using Pointer
  2. C Program To Read Infinite Number Then Arrange Ascending Order Using Pointer
  3. C Program To Average Of Array Function Of Using Pointer
  4. C Program For Swapping Two Number In Function Using Pointer
  5. C Program To Print Address Of Pointer Of An Array Using Pointer
  • File Handling Programs
  1. C Program To Read A Line By Line And Write Line By Line Using File
  2. C Program For Reading A No. From File And Sum Of No. Line By Line Using File
  3. C Program For Count A Character In File Using File
  4. C Program To Display The List Of Current Directory/Folder Using File
  5. C Program For Copy One File To Another Using File Handling
  6. 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

--

--

chase2learn.com
chase2learn.com

Written by chase2learn.com

one place| Learn Gain Continue the Chase! Corner for CS, Software engineering, ML, AI, Software Developers, Programmers, CareerPath, Interviews questions.

No responses yet