C

C Programming Practice Questions

The following list includes important C Programming Practice Questions.

Click on the link to find code for following C Programming Practice Questions

  1. Write code that allows a user to enter a number n and then displays it in words.
  2. Displays all ASCII character with their numeric values.
  3. Find power of a number using for loop.
  4. Given a number n, compute and display all factors of n.
  5. Write a program in C that allows user to enter a number n and displays the factorials of all numbers from 1 to n.
  6. Find HCF (GCD) of two numbers.
  7. Write a program in C that allows user to enter two numbers and computes Least Common Multiple (LCM) of these numbers.
  8. A prime number is the one that is divisible by 1 or itself. Write a program to determine whether a number is prime or not.
  9. Find prime numbers in a given range. Let users to enter the value of range.
  10. Write a C program to that allows user to enter a number n and then computes the sum of all prime numbers between 1 to n.
  11. Take a number n from user as input and display all of its prime factors.
  12. Take a number n as input from the user and determine whether n is an Armstrong number or not.
  13. Write a C program that determines Armstrong numbers from the specified range.
  14. Take a number n as input from the user and find out whether it is a Perfect number or not.
  15. Extend the above program to display perfect numbers in the given range.
  16. Take a number n from the user as input and determine whether it is a Strong number or not.
  17. Extend the above program to display all Strong numbers in the given range.
  18. Write a C program to print Fibonacci series up to given number of terms as well as upto a specified value of the last term. Define different functions for these two tasks.
  19. Create and display the elements of an array using pointers.
  20. C program to sort an array using Bubble Sort.
  21. Demonstrate the use of function pointers with an example.
  22. Write a C program to sort an array using Selection Sort.
  23. C program to sort an array using Insertion Sort.
  24. Linear Search and Binary Search in C language.
  25. Recursive function to find factorial of a number.
  26. Implement merge sort in C.
  27. Write a program to implement Quick sort in C language.
  28. Implement Heap sort in C.
  29. Write a C program to implement Binary Search Tree.
  30. A C Program for Recursive Binary Search.
  31. Implement Stack in C language.
  32. Write a C program for Queue implementation.
  33. Implement linked list in C.

Further Reading

50+ C Programming Interview Questions and Answers

C Program to Find Factorial of a Number

You may also like...