Skip to main content


“C Programming Questions With Answers".

Here, are some sample questions based on “C Programming Language”. Read it carefully as these questions will improve your basic concept on C programming language, and will help you in cracking any interview.

Click on any question to find out it's answers:

1. Explain Various Classes Of Datatypes Of C?
2. What Are Escape Sequences Characters? List Any Six Of Them.
3. What Do You Mean By Underflow & Overflow Of Data?
4. List Any Six Commonly Found Programming Errors In A C Program.
5. Explain Divide & Conquer Strategy To Solve Any Problem.

6. Differentiate Between White Box & Black Box Testing.
8. State The Differences Between Program Testing & Debugging.
9. State The Differences Between Top down & Bottom Up Approaches?
10. State The Differences Between Interpreted & Compiled Languages?

11. Briefly Explain What Do You Understand By Stepwise Refinement Of The Program?
12. What Is The Difference Between Declaring A Variable & Defining A Variable?
13. What Is Looping?
14. How Would You Distinguish Between Looping/Iteration & Recursion?
15. What Is An Unsigned Integer Constant? What Is The Significance Of Declaring A Constant As Unsigned?

16. Differentiate Between Break & Continue Statement?
17. Differentiate Between GoTo & Break Statement?
18. What Is The Purpose Of The Do-While Loop In C?
19. What Is The Difference Between Uses Of  For & While Loops?
20. What Is The Importance Or Purpose Of Main () Function?

21. Which Header File Is Used For Screen Handling Function?
22. How Many Types Of Logical Operators Are There In 'C' Programming Language?
23. What Is A Constant Variable?
24. Define Static Variable?
25. What Is A Register Variable?

26. Where Is An Auto Variable Stored?
27. What Is Meant By Scope & Storage Allocation Of A Variable Or Function?
28. What Is The Scope & Storage Allocation Of Extern & Global Variables?
29. What Is The Scope & Storage Allocation Of Register?
30. What Is The Scope & Storage Allocation Of Static & Local Variables?

31. Distinguish Between Automatic & Static Variables?
32. Differentiate Between Global/External & Local Variables?
33. What Do You Understand By Scope, Lifetime & Visibility Of The Variables?
34. What Is Meant By Identifiers? How Do Identifiers Differ From Keywords?
35. How Can Register Access Be Made Faster Than Memory Access?

36. What Is The Use Of Enumerated Data Types In C?
37. Which Bitwise Operator Is Used For Checking Whether A Particular Bit Is ON Or OFF?
38. Which Bitwise Operator Is Used For Turning OFF A Particular Bit In A Number?
39. What Are The Bitwise Logical Operators?
40. What Is Equivalent Of Multiplying An Unsigned Int By 2: Left Shift Of Number By 1 Or Right Shift Of Number By1?

41. What Is Enumeration?

42. What Is Enumeration Constant?
43. What Is Static Memory & Dynamic Memory Allocation?
44. What Is Dynamic Memory Allocation? Explain The Various Memory Allocation Function With Its Task.
45. What Are The Three Dynamic Memory Allocation Functions?

46. Explain The Various Memory Allocation Function With Its Task In C Programming.
47. What Are The Differences Between Malloc() & Calloc()?
48. What Is The Purpose Of Realloc?
49. What Is The Purpose Of The Free() Function?
50. How To Use Realloc() To Dynamically Increase Size Of An Already Allocated Array?

51. In Which Header File Are The Memory Management Functions Defined?
52. How Much Maximum Memory Can Be Allocated In A Single Call To Malloc() ?
53. What Are The Differences Between Formal Arguments & Actual Arguments Of A Function?
54. What Is Call By Value In Functions?
55. What Is Call By Reference In Functions?

56. What Is The Difference Between Call By Value & Call By Reference (Or Pass By Value Or Pass By Reference)?
57. Can You Pass A Variable Argument List To A Function At Run Time?
58. Explain The Need For User defined Functions Or The Advantages Of Functions?
59. What Are Function Prototype?
60. What Is Recursion?

61. A Recursive Procedure Should Have Two Properties. What Are They?
62. What Is Recursive Function?
63. For Implementing Recursive Function Which Data Structure Is Used Is?
64. Which Data Structure Is Needed To Convert A Recursion To An Iterative Procedure?
65. What Impact Would An Infinite Recursion Have On Run-Time Stack?

66. Why Is The Reasoning Behind 'Recursive Procedures Are Implemented By Using Stack Data Structure'?
67. What Are The Differences Between Getchar() & Scanf() Functions For Reading Strings?
68. Out Of The Functions fgets() & gets(), Which One Is Safer To Use & Why?
69. What Is The Difference Between The Functions strdup() & strcpy()?
70. Explain, In Brief The Purpose Of The Following String Handling Functions: 

71. What Is A Macro? How Is It Different From A C Variable Name? What Are The Advantages Of Using Macro Definitions In A Program?
72. What Are Preprocessor Directives? List Three Types Of Them.
73. Explain The New #pragma Directive?
74. Explain The New #error Directive?
75. What Are The Features Of C Preprocessor?

76. Give The Differences Between Macros & Functions?
77. What Is The Difference Between The Following Directives: #include <filename> & #include "filename"?
78. How Is Searching In an Arraylist Carried Out?79. Where Can An Element Are Inserted In An Array List?
80. How Is Deletion In An Array List Carried Out?

81. What Are The Advantages Of Array Lists?
82. What Are The Disadvantages Of An Array List?
83. What Is The Maximum Number Of Dimensions An Array Can Have In C?
84. What Is The Size Of Array int a[5]={1,2} ?
85. To Declare An Array S That Holds A 5 Character String, What Would You Write?

86. Why ‘&’ Operator Is Not Used With Array Names In A scanf Statement?
87. What Are Multidimensional Arrays?
88. How Is Multidimensional Arrays Defined In Terms Of An Array Of Pointer? What Does Each Pointer Represent?
89. What Do You Understand By Row-Major Order & Column-Major Order Of Arrays?
90. What Is Meant By The Terms Row-Major Order & Column-Major Order?

91. Can The Size Of An Array Be Declared At Runtime?
92. The Array DATA [10, 15] Is Stored In Memory In Row - Major Order. If Base Address Is 200 & Element Size Is 1. Calculate The Address Of Element DATA [7, 12].

104. What Is A Near Pointer?
105. How Many Bytes Are Occupied By Near, Far & Huge Pointers?

106. What Are Dangling Pointers?
107. What Is A NULL Pointer? Whether It Is Same As An Uninitialized Pointer? What Does The Error ‘Null Pointer Assignment’ Means & What Causes This Error?
108. Are Pointers Integer?
109. What Is Generic Pointer In C?
110. How Pointer Variables Are Initialized?

111. What Is Pointer To A Pointer?
112. What Is An Array Of Pointers?
113. Difference Between Array & Pointer?
114. What Are References. State The Differences Between Reference & Pointer.
115. Differentiate Between Pointers & Arrays With Example? 

116. What Is The Size Of int Pointer, Float Pointer & Char Pointer In C In 32-bit Compiler & 64 bit Compiler?
117. Difference Between An Array Name & A Pointer Variable?
118. Difference Between An Array Of Pointers & A Pointer To An Array?
119. What Are The Pointer Declarations Used In C?
120. Differentiate Between A Constant Pointer & Pointer To A Constant?

121. What Is The Invalid Pointer Arithmetic?
122. What Are The Advantages Of Using Array Of Pointers To String Instead Of An Array Of Strings?
123. Are The Expressions *ptr ++ & ++ *ptr Same?
124. Explain The Declaration int (*p (char *a))[10].
125. What Is Increment Factor Term Used In Pointers?

126. When Are char[] & char * Treated As Same By The Compiler?
127. To free() We Only Pass The Pointer To The Block Of Memory Which We Want To Deallocate. Then How Does free() Know How Many Bytes It Should Deallocate?
128. What Is A Far Pointer In C?
128. What Are The Difference Between A Null Pointer, A Null Macro, The ASCII NUL Character & A Null String?
129. What Is A Structure?
130. What Are The Differences Between A Structure & A Union?

131. How Can Typedef Be Used to Define A Type Of Structure?
132. What Is A Node? What Is A Linked List In C?
133. What Is A Self Referential Structure? 
134. Differentiate Between Structure & Array.
135. What Is A Union?

136. Define A Structure. How It Is Different From Union?
137. Define A Structure To Store The Following Information About An Employee Name, Sex(male, female), Marital_Status(single, married, divorced or widowed), age.(using bit fields).
138. Explain Pointers & Structures By Giving An Example Of Pointer To Structure Variable?
139. What Is Meant By Union?
140. What Are The Advantages Of Unions?

141. What Are Data Files? State The Two Types Of Data Files? State The Basic Difference Between The Two Data Files?

142. What Are The Different Modes In Which A File Can Be Opened In C Programming?
143. In Which Mode If The File Is Opened, The Content Of The File Will Be Lost?
144. What Is A File? Write The Syntax For File Declaration. What Are Modes In File?
145. Write The Syntax To Open A File. What Is The Significance Of fclose() Function?

Keywords: c test questions and answers, c questions and answers for interview pdf, c placement questions and answers pdf, c interview questions and answers for freshers pdf download, c interview questions and answers, c programming interview questions and answers, c programming final exam questions and answers, tricky c questions and answers, top 100 c interview questions and answers, technical c questions and answers, technical interview questions and answers for freshers in c, sample c questions and answers, all c programming questions and answers, c programming question answer, c programming language questions and answers, sample c programming questions and answers, c programming questions with answers, c programming sample questions and answers, c interview questions, c programming test questions and answers,  c programming interview questions, interview questions on c language with answers, frequently asked questions in c with answers for interview, c questions and answers for interview, c test questions and answers, a c questions and answers, top 100 c interview questions and answers, technical interview questions and answers for freshers in c, sample c programming questions and answers, simple c interview questions and answers, tcs c interview questions and answers, questions and answers in c programming, c questions asked in technical interview,


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

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.


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 aptitude and right attitude for the…

100 C Programs Frequently Asked in Technical Interview.

Why Should We Hire You? - Interview Answers

The interviewer asks this question just to find out how your skills, experience and knowledge can add value to the job.Well to answer this question you need to learn what they are looking for and then tie them with your strengths. This ensures that you are a viable fit for the position.

The more detail you give the stronger your answers will be. Try to summarize all your accomplishments and relate what makes you unique.

The question can also be

"Why should we hire you over other candidates?"
"Why should we hire you over the others waiting to be interviewed?"

Your answers can be:

1) You should hire me because I’m the best person for the job. I realize that there are likely other candidates who also have the ability to do this job. Yet I bring an additional quality that makes me the best person for the job - my passion for excellence. I am passionately committed to producing truly class results.

2) I believe I’m the perfect fit for this position. I’m very detai…