0% found this document useful (0 votes)
5 views2 pages

C Programming Practice Questions

The document contains a list of C programming practice questions designed to enhance coding skills. It includes tasks such as basic arithmetic operations, string manipulation, array handling, and control structures. Additionally, there are extra challenges involving a simple calculator, a student record system, and file operations.

Uploaded by

dearone150
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

C Programming Practice Questions

The document contains a list of C programming practice questions designed to enhance coding skills. It includes tasks such as basic arithmetic operations, string manipulation, array handling, and control structures. Additionally, there are extra challenges involving a simple calculator, a student record system, and file operations.

Uploaded by

dearone150
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C Programming Practice Questions

1. Print your name, age, and address.

2. Add two numbers.

3. Swap two numbers using a temporary variable.

4. Swap two numbers without using a temporary variable.

5. Find if a number is even or odd.

6. Find the largest of two numbers.

7. Find the largest of three numbers.

8. Check whether a number is positive, negative, or zero.

9. Calculate the area of a circle.

10. Convert Celsius to Fahrenheit.

11. Print numbers from 1 to 10 using a loop.

12. Find the sum of natural numbers up to n.

13. Display multiplication table of a given number.

14. Find factorial of a number.

15. Check whether a number is prime or not.

16. Print Fibonacci series up to n terms.

17. Find the sum of digits of a number.

18. Reverse a number.

19. Check whether a number is palindrome or not.

20. Display a simple pattern (like triangle of *).

21. Find largest and smallest element in an array.

22. Calculate the sum and average of array elements.

23. Sort array elements in ascending order.

24. Find the frequency of elements in an array.

25. Count vowels and consonants in a string.

26. Reverse a string.

27. Check whether a string is a palindrome.


28. Concatenate two strings without using strcat.

29. Copy one string to another without using strcpy.

30. Find length of a string without using strlen.

Extra 1: Write a simple calculator using switch case.

Extra 2: Create a student record system using struct.

Extra 3: Write a program to read and write to a file.

You might also like