Skip to main content

100 C Programs Frequently Asked in Technical Interview.


Here we bring you a collection of 100 C Programs which are frequently asked in technical interviews and semester exams. 

Just click on the links given below to view the sample code.



1. C Program To Print Welcome Message.
2. C Program To Accept & Display A Number.
3. C Program To Add Two Numbers.
4. C Program To Perform Arithmetic Operations.
5. C Program To Print Sum Of Digits In A Number.


6. C Program To Find The Sum Of N Numbers.

7. C Program To Print Sum Of Series 1 + 3 + 5 + …. N.
8. C Program To Print The System Date.
9. C Program To Swap Two Numbers Using Temporary Variables.
10. C Program To Swap Two Numbers Without Using Temporary Variables.


11. C Program To Read Two Numbers And Print The Sum Of Given Two Numbers.
12. C Program To Accept Student Roll No, Marks in 3 Subjects and Calculate Total, Average and Print it.
13. C Program To Read Three Numbers And Print The Biggest Of Given Three Numbers.
14. C Program To Print Sum Of Individual Digits Of Given Number.
15. C Program To Accept A Three Digit Number & Print The Sum Of Individual Digits.



16. C Program To Print First Ten(10) Natural Numbers.
17. C Program To Print Natural Numbers From 1 To 10 In Reverse Order.
18. C Program To Print Sum Of The Natural Numbers From 1 to 10.

19. C Program To Print ODD Numbers From 1 to 10.
20. C Program To Accept A Number & Print Mathematical Table Of The Given No.

21. C Program To Print 1 To 10 Mathematical Tables.
22. C Program To Accept A Character In Any Case & Print It In Another Case.
23. C Program To Print Natural Number From 1 To 10 By Using While Loop.

24. C Program To Find Area & Circumference Of A Circle.
25. C Program To Find The Area Of A Rectangle (Using Functions).



26. C Program To Find Factorial Of A Number.
27. C Program To Print Fibonacci Series Upto 100.
28. C Program To Calculate Simple Interest.
29. C Program To Check Whether A Number Is Prime Or Not.
30. C Program To Print Prime Numbers Between 1 To 100.


31. C Program To Print A Semicolon Without Using A Semicolon.
32. C Program To Display Function Without Using The Main Function.
33. C Program To Print Any Print Statement Without Using Semicolon.
34. C Program To Display Its Own Source Code As Its Output.
35. C Program To Get IP Address.


36. C program To Accept An Integer & Reverse It.
37. C Program To Convert Given Number Of Days To A Measure Of Time Given In Years, Weeks & Days.



38. C Program To Check Whether A Number Is Even Or Not.
39. C Program To Find Greatest Among Three Numbers.
40. C Program To Compute The Reverse Of A Number.


41. C Program To Convert Degree Celsius Temperature To Fahrenheit.
42. C Program To Accept Floating Point Numbers & Print Average.

43. C Program To Find The Area Of A Triangle.
44. C Program To Sort A Given Set Of Numbers In Ascending Numbers.
45. C Program To Specify Size Of Commonly Used Data Types.


46. C Program To Accept Input & Multiply Two Numbers.
47. C Program To Count The Number Of Times A Digit Occurs In A Number Array.

48. C Program To Find The Roots Of A Quadratic Equation.
49. C Program To Count The Number Of Times The Largest Digit Occurs In A Number.
50. C Program To Print Number Of Vowels, Consonants, Characters, Words & Spaces In A Line Of Text.



51. C Program To Check Whether A Number Is Armstrong Or Not.
52. C Program To Display The Days In A Week (Using Switch...Case Statement).
53. C Program To Find The Square Of A Number (Using Functions).

54. C Program To Find Gross Salary.
55. C Program To Check Whether A Year Is A Leap Year Or Not.



56. C Program To Add Complex Numbers.
57. C Program To Display A Sequence Using Stars.
58. C Program To Print A Star Pyramid.
59. C Program To Print Floyd’s Triangle.

60. C Program To Illustrate The Concept Of Unions.


61. C Program To Find The Size Of A Union.
62. C Program To Print Numeric Pyramid.
63. C Program To Print Numerical Pyramid.
64. C Program To Print Numerical Diamond.
65. C Program To Print Character Pyramid.


66. C Program To Print Character Diamond.
67. C Program to find biggest of two no by using ternary operator.
68. C Program to find biggest of four nos. by using Ternary Operator.
69. C Program to find smallest of four nos. by using Ternary Operator.
70. C Program to accept a year and check the whether the given year is a leap year or not by using ternary operator.


71. C Program To Accept A Character In Uppercase & Print In Lowercase.
72. C Program For Entering An Array Of Elements.
73. C Program For Deleting An Element From An Array.
74. C Program For Inserting An Element In An Array.
75. C Program To Count Frequency Of Elements In An Array.


76. C Program On Two Dimensional (2-D) Array / Matrix.

77. C Program To Find Transpose a 3 * 2 matrix.
78. C Program To Multiply Two 3 * 3 Matrix.
79. C Program To Add Two 3 * 3 Matrix.
80. C Program To Print Upper Triangle.

81. C Program to accept values into 3 dimensional array and print.
82. C Program to accept two 3 dimensional array and store addition of those into the third 3-D array .
83. C Program To Implement 8 Queens Problem Using Arrays, Pointers & Functions.
84. C Program To Display Array Of Strings.
85. C Program To Count The Number Of Times A Digit Occurs In A Number Array.

86. C Program To Accept A String & Display It.
87. C Program To Find The Length Of A String.
88. C Program To Concatenate Two Strings.
89. C Program To Compare Two Strings.
90. C Program To Swap Two Strings.


91. C Program To Swap Two Strings Using strcpy() Function.
92. C Program To Sort A Given Number Of Strings Using strcmp() Function.
93. C Program To Check Whether A String Is Palindrome Or Not.
94. C Program To Print The Reverse Of A String.
95. C Program To Join Two Strings.


96. C Program To Display Array Of Strings.
97. C Program To Convert String To An Integer Using atoi() Function.
98. C Program To Accept A String & Display In Reverse.
99. C Program To Accept A String & Display Its Alternate Characters.
100. C Program To Accept A String & Display Alternate Characters In Either Case.


101. C Program To Accept A String & Display It's Substring.
102. C Program To Accept A String & Display It's Alternate Characters In Reverse.
103. C Program To Accept Two Strings & Display The Largest String.
104. C Program To Accept A String & Display Vowels.
105. C Program To Accept A String & Display Number Of Vowels.


106. C Program To Accept A String & Display Number Of Each Vowels.
107. C Program To Accept A String & Find Out Whether This Character Is Present In The String.
108. C Program To Find Out The No. Of Times A Character Is Present In The String.



109. C Program To Understand Working Of Address Concept.
110. C Program On Use Of Array & Pointer Concept Together.


111. C Program On Pointers & 2 - Dimensional Array.
112. C Program On Strings Into Array Of Pointers.
113. C Program To Add Two Numbers Using Pointers.
114. C Program To Accept & Add Ten Numbers Using Pointers.
115. C Program To Accept & Add Ten Numbers Using Pointers.


116. C Program To Implement Recursive Algorithm Using Pointers.
117. C Program With Algorithm To Implement Bubble Sort Using Pointers.
118. C Program To Implement Selection Sort Using Pointers, Arrays & Functions.
119. C Program to sort the entered numbers using bubble sort.
120. C Program To Implement Minimum Spanning Tree Using Functions, Pointers & Structures.


121. C Program To Implement 8 Queens Problem Using Arrays, Pointers & Functions.
122. C Program To Implement Quick Sort Using Pointers, Functions & Arrays.
123. C Program To Implement Binary Search Without Using Recursive Function.
124. C Program To Implement Binary Search Using Recursive Function.
125. C Program To Implement Merge Sort Using Divide & Conquer Strategy.


126. C Program To Implement Selection Sort Using Pointers, Arrays & Functions.
127. C Program With Algorithm To Implement Bubble Sort Using Pointers.
128. C Program To Implement Recursive Algorithm Using Pointers.







LABELS: c programs asked in interviews, c technical interview questions with answers, programs asked in technical interview, programs asked in technical interview, c programs asked in interviews, c programs asked in interviews with answers, c programs asked in interviews with answers, c programs asked in interviews download, c programs asked in interviews with answers, c programs asked in interviews, important c programs asked in interviews, basic c programs asked in interview, c programs asked in technical interview, basic c programs asked in interviews, c programs asked in interviews with code

Comments

Post a Comment

Please share your opinions and suggestions or your experience in the comments section. This way we can all help each other...

Experienced guys can share their resumes at admin@interview-made-easy.com

Popular posts from this blog

Tell Me Something About Yourself - Interview Answers.

Try to introduce some of your most important employment-oriented skills as well as your education and accomplishments to the interviewer. Answer to this question is very important because it positions you for the rest of the interview . That's why this statement is often called the "Positioning Statement". One should take the opportunity to show his/her communication skills by speaking clearly and concisely in an organized manner. Since there is no right or wrong answer for this question hence it is important to appear friendly. YOUR ANSWERS CAN BE: 1) I am a person with strong interpersonal skills and have the ability to get along well with people . I enjoy challenges and looking for creative solutions to problems. 2) Besides the details given in my resume, I believe in character values, vision and action. I am quick in learning from mistakes. I am confident that the various tests that you have conducted will corroborate my competencies apti...

What Is (Are) Your Weakness (Weaknesses)? - Interview Answers

There’s a saying – “However small the thorn maybe it has the ability to pierce.” Never say you are a Workaholic, a Perfectionist, etc. because it sounds negative. Try to convert these negative biased qualities into positive ones. For Example, In   place of Workaholic you can say you are a hard worker and always willing to work for extra hours. In place of Perfectionist , you can say you are detail oriented and like to set high standard for work. “Try to specify your weakness as your strength and also highlight it as a benefit.” Your answers can be: 1) One of my weaknesses as I perceive is occasional compromise on time for quality and perfection. 2) I feel I am not very detail-oriented . I’m a person that wants accomplish as much as possible. I realized this hurts quality and therefore I‘m trying hard to find a balance between quality and quantity. 3) At times even when I need help, I try to solve my own problems instead of asking a co-worker who might know...

What Is (Are) Your Strengths? - Interview Answers

This is a simple and popular interview question. Generally people answer it in two ways. There are people who simply state their strength like “I am Young, Dynamic, Intelligent, Smart and so on…”. Such answer is neither right nor wrong but does not help u in any way also. Secondly there are peoples who state their strengths and explain them how he can use his strength for the job and industry. Do not simply state your strength. Everyone has some strength, all you need is to convert them into benefits. In short, try to advertise yourself by converting your features into strengths. “EVERYONE CLAIM THEY ARE HONEST, HARDWORKING, SMART AND SO ON….. BUT WITH AN EXAMPLE IT IS MUCH MORE BELIEVABLE.” Your answers can be : 1) I am a hard worker and because of this ability I can work for additional hours to accomplish my tasks.I am commitment oriented and hence I always enjoy the trust and confidence of my team mates which enables me to perform my duties very easily. 2) I am a...