C Question with Solution, Zero to advance level

 Beginner Program 👇👇 C Language || c program all category

Learn Code Prem || learncodeprem || #learncodeprem || #cprogram || #learncodepremcprogram

C Question with Solution

This is best to best question, all to all question you solved then you're expert.

ये सब program करने के बाद आपका Basic Strong हो जायेगा 100% Real

Warm up Programs/Basic Program

  1.  Write a program to add two numbers.  (Solution).
  2. Write a program to subtraction two number. (Solution).
  3. Write a program to Multiplication Two Number. (Solution).
  4. Write a program to Calculate Simple interest. (Solution).
  5. Write a program to Division two numbers. (Solution).
  6. Write a program to calculate area of a circle. (Solution).

  7. Write a program to calculate area of square. (Solution).
  8. Write a program to calculate area of triangle. (Solution).
  9. Write a program to Convert celcius to farenheit(Solution).
  10. Write a program to Convert farenheit to celcius(Solution).
  11. Write a program to convert and print this distance in meters and feet and inches and centimeters.(Solution) (GitHub)
  12. Write a program to Convert Km to Meter(Solution) (GitHub).
  13. Write a program to Swap two variables. (Solution) (GitHub).
  14. Write a program to Swap two values without 3rd variable. (Solution) (GitHub).
  15. Write a program to Swap two values using XOR(Solution) (GitHub).





C Question with Solution





Topic 12 For Loop
  1. Write a program to calculate HCF of two number. (Solution)
  2. Write a program to print first N terms of a Fibonacci series. (Solution)
  3. Write a Pattern1 (Solution)
  4. Write a Pattern2 (Solution)
  5. Write a Pattern3 (Solution)
Topic While Loop
  1. Write a program which takes the month number as an input and display number of days in that month. (Solution)
  2. Write a menu driven program with the following options: (Solution)
    • Check whether a given set of three numbers are lengths of an isosceles triangle or not
    • Check whether a given set of three numbers are lengths of sides of a right angled triangle or not
    • Check whether a given set of three numbers are equilateral triangle or not
    • Exit
Topic Function
  1. Write a function to calculate HCF of two numbers. (TSRS) (Solution)
  2. Write a function to calculate LCM of two numbers. (TSRS) (Solution)
  3. Write a function to print first N odd natural numbers. (Solution)
  4. Write a function to print first N natural numbers in reverse order. (Solution)
  5. Write a function to calculate the area of a circle. (TSRS). (Solution)
  6. Write a function to check whether a given number is even or odd. Return 1 if the number is even, otherwise return 0. (TSRS) (Solution)
  7. Write a function to calculate the factorial of a number.(TSRS) (Solution)
  8. Write a function to print first N natural numbers (TSRN) (Solution)
  9. Write a function to print first N odd natural numbers. (TSRN) (Solution)
  10. Write a function to find the next prime number of a given number. (TSRS) (Solution)
  11. Write a function to check whether a given number is Prime or not. (TSRS) (Solution)
  12. Write a function to calculate simple interest. (TSRS) (Solution)
Topic Recursion
  1. Write a recursive function to print first N odd natural numbers. (Solution)
  2. Write a recursive function to print first N odd natural numbers in reverse order. (Solution)
  3. Write a recursive function to print first N natural numbers in reverse order. (Solution)
  4. Write a recursive function to calculate factorial of a given number. (Solution)
  5. Write a recursive function to find the nth term of Fibonacci series. (Solution)
  6. Write a recursive function to print first N even natural numbers. (Solution)
  7. Write a recursive function to print first N natural numbers. (Solution)
  8. Write a recursive function to print squares of first N natural numbers. (Solution)
  9. Write a recursive function to calculate sum of first N even natural numbers. (Solution)
  10. Write a recursive function to calculate sum of first N odd natural numbers. (Solution)
  11. Write a recursive function to calculate sum of digits of a given number. (Solution)
  12. Write a recursive function to calculate sum of squares of first n natural numbers. (Solution)
  13. Write a recursive function to calculate sum of first N natural numbers. (Solution)
Topic Array
  1. Write a program to calculate the average of numbers stored in an array of size 10.Take array values from the user. (Solution)
  2. Write a program to calculate the sum of all even numbers and sum of all odd numbers, which are stored in an array of size 10. Take array values from the user. (Solution)
  3. Write a function to find the greatest number from the given array of any size. (TSRS) (Solution)
  4. Write a program to find the greatest number stored in an array of size 10. Take array values from the user. (Solution
  5. Write a program to calculate the product of two matrices each of order 3x3. (Solution)
  6. Write a program to find the smallest number stored in an array of size 10. Take array values from the user. (Solution)
  7. Write a function to find the smallest number from the given array of any size. (TSRS) (Solution)
  8. Write a program to sort elements of an array of size 10. Take array values from the user. (Solution)
  9. Write a function to sort an array of any size. (TSRS) (Solution)
  10. Write a program to calculate the sum of numbers stored in an array of size 10. Take array values from the user. (Solution
  11. Write a program to calculate the sum of two matrices each of order 3x3. (Solution)
  12. Write a program in C to find the transpose of a given matrix. (Solution)
  13. Matrix (Solution)
Topic String
  1. Write a program to calculate the length of the string. (without using built-in method) using Loop. (Solution)
  2. Write a program to calculate the length of the string. (without using built-in method) using while loop. (Solution)
  3. Write a program to count the occurrence of a given character in a given string. (Solution)
  4. Write a program to count vowels in a given string. (Solution)

























Post a Comment

4 Comments