C INTERVIEWS QUESTIONS
1. What's the C language? |
2. Who has developed C language? |
3. Describe the history of the C programming language. |
4. Where is the C programming language used or the C language used? |
5. What's the difference between C and C++? |
6. What is the compared to the top-down
approach and the bottom-up approach in programming languages? |
7. Difference between Java and C? |
8. C language was developed in which language? |
9. Which year C language has been developed? |
10. What does programming language mean and
give some examples? |
11. Describe the C standards. |
12. What are the key features of the
C-language or the characteristics of the C-language? |
13. What's C embedded in it? |
14. Which level does the C language belong
to? |
15. What do you mean by high-level,
middle-level and low-level languages and give each of them an example? |
16. What is the difference between structured, object-oriented, and non-structure-oriented programming language? |
17. What's the compiler? |
18. What's the difference between the
assembler, the compiler, and the interpreter? |
19. What is printf()? |
20. What is scanf()? |
21. What does the protocol mean? |
22. The execution of the C program starts
with which function? |
23. What are all the sections that the C program can and must-have? |
24. What's the IDE? |
25. Please list some of the C compilers. |
26. What is the C-language header file? |
27. Is the case of C language-sensitive? |
28. What's the macro? Why are we using a
macro? |
29. What is the type of data in C? |
30. What is the difference between the type
of int, char, float, and double data? |
31. What's the use of the sizeof() function
in C? |
32. What's the change in C? |
33. What are the different types of C
modifiers? |
34. What's the Enum in C? |
35. What's the void in C? |
36. What's a C token? |
37. What kind of C tokens are there? |
38. What's a C identifier? |
39. What's the keyword in C? |
40. List some of the keywords available in
the C language. |
41. What's the constant in C? |
42. What are the constant types in C? |
43. What's the variable in C? |
44. What is the difference in C between
constant and variable? |
45. Can the name of the variable start with
numbers? |
46. What is the difference between the
declaration of variable and the definition of a variable in C? |
47. What are the different variable types in
C? |
48. What's the local variable in C? |
49. What's the global variable in C? |
50. What is the C environment variable? |
51. What's the operator in C? |
52. What are the different types of C
operators? |
53. What is the syntax for the C ternary
operator? |
54. What is the C arithmetic operator? |
55. What's the assignment operator in C? |
56. What is the C relational operator? |
57. What's the logical C operator? |
58. What's the C bitwise operator? |
59. What are the decision control statements
in C? |
60. What are the loop control statements in
C? |
61. What's the difference between while and
do-while loops in C? |
62. What is the difference between a single
equal "=" and a double equal "= =" operator in C? |
63. What is the difference between the
post-increment operator and pre-increment operator? |
64. What is the difference between a
post-decrement operator and a pre-decrement operator? |
65. Explain the "*" and
"&" operators in C? |
66. What happens if the break statement is
not used in the C switch case? |
67. Why is the default statement used in the
C switch case? |
68. What is the "goto" statement? |
69. What value is assigned to the variable X
if a = 10, b = 20, c = 30, d = 40 for the expression X = a / b+c*d-c? |
70. What is the value assigned to the variables below? int X1 = 13/3; int X2 = 13%3; |
71. What is the difference between the auto variable and the C registry variable? |
72. What's the difference between the auto
variable and the static variable in C? |
73. Where is the typecast function not to be
used in C? |
74. How many arguments can be passed to the C
function? |
75. What's the static function in C? |
76. If you want to run the C program even
after the main function is finished, which function can be used? |
77. Is it possible to call atexit() more than
once in a C program? |
78. What's the exit() function in C? |
79. Difference between exit() and return() in
C? |
80. What is the use of "# define"
in C? |
81. What is the syntax of the comments in C? |
82. What's the "# #" operator in C? |
83. What's the C pragma? Or how are you going to perform functions before and after the main function in the C program? |
84. How are you going to override the existing macro in C? |
85. How to check whether or not the macro is
defined in the C program? |
86. What's the difference between memcpy()
and strcpy() functions in C? |
87. What's the difference between memcpy()
and memmove() functions in C? |
88. Is there any built-in library function in
C to remove the leading and trailing spaces from the string? How are you
going to remove them in C? |
89. What is the difference between the
functions of strcpy() and strncpy() in C? |
90. Can array subscriptions have a negative
value in C? |
91. What's the difference between the array
and the C string? |
92. What's the pointer in C? |
93. What are the zero pointers in C? |
94. What's the NULL in C? |
95. What's the void pointer in C? |
96. What's the dangling pointer in C? |
97. What's the wild pointer in C? |
98. What's the C file pointer? |
99. When can the void pointer and the zero
pointers be used in C? |
100. What's a C const pointer? |
101. Is the arithmetic pointer a valid one?
Which arithmetic operation should not be valid in the pointer? Why? |
102. Is void arithmetic a valid pointer? Why? |
103. What's the difference between zero and Null? |
104. What is the difference between the zero
pointers and the uninitialized pointer in C? |
105. Can the size of the array be declared at
run time? |
106. What's a memory leak in C? |
107. What's going to happen when we try to
access the zero pointers in C? |
108. What does segmentation fault or memory
fault mean in C? |
109. What does the core dump in C mean? |
110. Can a pointer be freed in C more than once? What happens if we do it? Or can a pointer be set free twice in C? |
111. What's the size of the int pointer and the char pointer in C? |
112. How are you going to print the value and address of the pointer variable (example int * ptr) in C? |
113. How are you going to print the value and address of the normal variable (example int ptr) in C? |
114. What are the functions of the library and their use in the C language? Can we write our own features and include them in the C library? |
115. Can the variable name start with the
underscore in C? |
116. Can the name of the variable have special
symbols in C? |
117. What's the inline function in C? |
118. Is it possible to print "Hello
World" in C without a semicolon? How is that? |
119. What is the scope of the local, global,
and environmental variables in C? |
120. Why do we use C pointers? |
121. What's the static variable in C? |
122. What is the external and static function
in C? |
123. What's the difference between the pointer
and the array in C? |
124. Can variables in C be both volatile and
constant? |
125. What is the main() function used in C? |