The document is a practical file containing a list of programming tasks to be completed using the C programming language. It includes various exercises such as printing 'hello world', swapping numbers, calculating simple interest, and working with arrays and file handling. The tasks range from basic programming concepts to more advanced topics like recursion and dynamic memory allocation.
The document is a practical file containing a list of programming tasks to be completed using the C programming language. It includes various exercises such as printing 'hello world', swapping numbers, calculating simple interest, and working with arrays and file handling. The tasks range from basic programming concepts to more advanced topics like recursion and dynamic memory allocation.
2. Write a program to swap two numbers without using third variable. 3. Write a program to swap two numbers using third variable. 4. WAP to print cube of a given number. 5. Write a program to add two numbers and to read the numbers from the user. 6. Write a program to find the simple interest. 7. Write a program to print the table using for loop. 8. WAP to print 1 to 10 number using while loop. 9. Write a program to Check weather number is Even or Odd. 10. WAP to check the day using Switch case. 11. WAP to find the factorial of a number. 12. Write a program to find leap year or Not. 13. Write a program to check weather person is eligible to vote or Not. 14. WAP to check weather Number is Prime or Not. 15. Write a program right half pyramid pattern of star. 16. Write a program left half pyramid pattern of star. 17. Write a program full pyramid pattern of star. 18. WAP of Reverse Number. 19. WAP to check weather number is Palindrome or Not. 20. WAP to take the number from the user and sum of digits. 21. WAP to find the largest number. 22. WAP to calculate the grade of the students using If-else-if statements. 23. WAP to find a factorial of a given number using recursion. 24. WAP to take 10 integer numbers from the user in an array & print them. 25. WAP to using break statement. 26. WAP to using continue statement. 27. WAP to check weather number is even or odd using goto statement. 28. Write a program of one dimensional array. 29. Write a program of two dimensional arrays. 30. Write a program of call by value. 31. Write a program to read a string from the user. 32. Write a program to pass a string to function. 33. Write a program to find the length of a string. 34. Write a program to compare two strings. 35. Write a program of call by reference. 36. Write a program to access string elements. 37. WAP to print the Fibonacci series. 38. WAP to demonstrate the Armstrong number. 39. WAP to allocate memory dynamically using malloc() and calloc(). 40. Write a program to create a file in file handling. 41. Write a program to append data to an existing file in file handling. 42. Write a program to use of fscanf() and fprintf() in file handling. 43. Write a c program that reads a list of student records (name, roll number, marks) from the user and stores them in a file. Then, read and display the student records from the file. 44. Write a program of nested structure (structure within structure).
45. Declare an array of 5 Book structures and write a program to input details for each book and display them.