Wednesday, April 30, 2025

C Programming Practical Questions for beginners

 

C Programming Practical Questions for beginners

  1. Write a C program to find the sum of the first 10 even numbers.

  2. Write a C program to check whether a given string is a Palindrome or not.

  3. Write a C program to convert temperature from degree Centigrade to Fahrenheit.

  4. Write a C program to display the factorial of a given number using a for loop.

  5. Write a C program to display days of a week using switch-case.

  6. Write a C program to print all uppercase and lowercase alphabets.

  7. Write a C program to display the Fibonacci series.

  8. Write a C program to add two-dimensional matrices.

  9. Write a C program to search for a given element in an array using Linear Search.

  10. Write a C program to find the sum of digits of a given number.

  11. Write a C program to find the average marks obtained by a student taking any 3 subject marks as input.

  12. Write a C program to find the largest element in a given array of elements.

  13. Write a C program to reverse a given number.

  14. Write a C program to check whether a given year is a Leap year or not.

  15. Write a C program to find the square of a number using a user-defined function.

  16. Write a C program to check whether a number is even or odd using switch-case.

  17. Write a C program to check whether the given number is a Perfect number or not.

  18. Write a C program to display the Factorial of a given number using a while loop.

  19. Write a C program to check whether the given number is Armstrong or not.

  20. Write a C program to check whether a number is Prime or not.

  21. Write a C program to find the Factorial of a given number using recursion.

  22. Write a C program to concatenate two strings using string functions.

  23. Write a C program to demonstrate any 5 mathematical functions.

  24. Write a C program to swap two numbers using the call-by-reference method.

  25. Write a C program to display the first n natural numbers.

  26. Write a C program to add two numbers using pointers.

  27. Write a C program to display Prime numbers from 1 to n.

  28. Write a C program to find the GCD of two numbers.

  29. Write a C program to count the number of vowels in a given string.

  30. Write a C program to reverse a given string using recursion.

  31. Write a C program to check whether two strings are equal or not using string functions.

  32. Write a C program to multiply two-dimensional matrices.

  33. Write a C program to find the biggest of 3 given numbers.

  34. Write a C program to display the length and reverse of a string using string functions.

  35. Write a C program to display whether a number is even or odd using the conditional operator.

  36. Write a C program to find the sum and average marks of 10 students stored in an array.

  37. Write a C program to accept and display the details of an employee using structures.

  38. Write a C program to search for a given element in an array using Binary Search.

  39. Write a C program to find the area and circumference of a circle.

  40. Write a C program to display the length of a string using pointers.

  41. Write a C program to find the transpose of a given matrix.

  42. Write a C program to find the sum of the series 12+22+32++n2.

  43. Write a C program to display elements in a given array using pointers.

  44. Write a C program to generate the multiplication table of a given number.

  45. Write a C program to find the roots of a quadratic equation.

  46. Write a C program to find the number of characters, words, and lines in a given text.

  47. Write a C program to check whether a given triangle is equilateral, isosceles, or scalene.

  48. Write a C program to calculate Simple and Compound Interest.

  49. Write a C program to swap two numbers without using a third variable.

  50. Write a C program to find the largest of 2 numbers using a user-defined function.

Thanks
SK Institute


No comments:

Post a Comment