0% found this document useful (0 votes)
31 views

C Progams

Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

C Progams

Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

List of Programs - C

Operators and Conditional Statements

1. C Program to Convert a Given Number of Days in terms of Years, Weeks & Days

2. C program to check given number is even or odd using If and Switch statement

3. C program for finding roots of a quadratic equation.

4. C program to simulate Simple Calculator (+, -, *, /, %)

5. C Program to Swap the Contents of two Numbers using Bitwise XOR Operation

6. C Program to Multiply given Number by 4 using Bitwise Operators

Control Statements

7. C Program to Check whether a given Number is Armstrong or not.

8. C program to check given number is palindrome or not

9. C Program to Convert Roman Number to Decimal Number

10. C Program to Convert a Decimal Number to Binary and Count the Number of 1s

11. C Program to Print Diamond Pattern

12. C program to print Pascal triangle

Functions and Recursion

13. C Program to implement user-defined findarea() function to find area of different


Geometrical Figures like triangle, circle

14. C program to implement user-defined swap() function using call by reference

15. C Program to implement user-defined sin(x) function

16. C Program to find the Nth Fibonacci Number using Recursion

17. C Program to Find the GCD and LCM of Two Integers using Recursion

One dimensional arrays and String

18. C Program to Find the Largest and Smallest Numbers in an Array of integers

19. C Program to Print All the Repeated Numbers with Frequency in an Array of integers
20. C Program to Find the count of Vowels and Consonants in a String

21. C Program to change case of all characters (upper to lower or lower to upper) in a given
string

22. C Program to print string in reverse order without string functions

23. C Program to Read a String and find the Sum of all Digits in the String

24. C Program to Count the Occurrence of a Substring in a given String

25. C Program to Print the Words Ending with Letter S in a given String

26. C Program to Count the Number of Occurrences of each Character Ignoring the Case of
Alphabets and Display them

Two dimensional arrays

27. C Program to Find the Transpose of a given Matrix

28. C Program to Calculate the Sum & Difference of the Matrices

29. C Program to Compute the Product of Two Matrices

30. C Program to Check if a given Matrix is an Identity Matrix

31. C Program to find the Sum of each Row and each Column of a MxN Matrix

32. C Program to find the Sum of the Main and Opposite Diagonal Elements of a MxN
Matrix

Pointers

33. C Program to Calculate the Sum of the Array Elements using Pointer

34. C Program to find length of string using pointers

35. C Program to find sum of ASCII values of as string using pointers

36. C Program to replace a character in a string using pointers

37. C Program to search for a word in a given array of strings using pointers

38. C Program to find tokens of a given C statement using pointer

Structures and Unions

39. C Program to implement Student structure that stores Roll No, Name, Branch, Year, Sem
etc.
40. C Program for implement Phone number search with each contact structure having Name
and phone number then display phone number of matching contact name

41. C Program to simulate Banking application that performs insertion, deletion and search
on array of customer structures that includes AC No., Name, Mobile No, Address etc.

42. C Program to implement simple union with an integer and array of two characters, then
swap the two characters and print the integer value before and after swapping

Files and Command line arguments

43. C program to display each and every command line argument

44. C Program to display its own Source Code as its Output along with number of lines and
words

45. C Program to Search for a word in a given file

46. C Program to find mean and mode of values in a file

47. C Program to give numbers for each line in a file

48. C Program to copy a binary file.

You might also like