Sunday, 9 April 2017

C Interview qustions

1. Diff b/w C and Embedded C?
2. Bigindian and Little indian difference  and examples?
3. Void pointer and function pointer
4. Structure and union diff
5. If-Else and Switch case diff
6. While and for loop diff..
7. Swap two values without using 3rd variable.
8. Write a program to Exchange LSB and MSB (Write logic in C)
9. Write a program to reverse the bit
10. Write a program to covert Decimal to binary
11. Array and Structure Difference.
12. What is structure padding and void pointer?
13. What is pointer and application?
14. Wild, dangling and Null pointer?
15. Pointer to function, pointer to array and Double pointer syntax..?
16. Types of memory allocation? explain with syntax.
17. What is pre-processor and types and syntax.?
18. State Typedef, enum and Macro difference.
19. Macro and inline function difference..
20. What is inline function and write syntax. and advantages and disadvantages.
21. Function and Interrupt difference.
22. What is bit field.?
23. What is bit handling?
24. Write a program for palindrome..
25. What is storage class? and type with syntax. scope?
26. What is malloc and calloc?
27. What are qualifiers? types with examples.
28. Write a program to find perfect no..
29. Write a program for Fibonacci series.
30. Findout 0's and 1's in the binary.
31. What are endianas ?
32. What is structure and unions? diff with advantage and syntax.
33. How will you find out whether system is Bigindian or little indian?
34. How to avoid structure pading?
35. What is nested structure or anonymous structure? syntax?
36. What is structure uniqueness with syntax?
37. Find the size of structure?
38. What is enumeration and what is the first value assigned to it?
39. What is function? type of functions.
40. What is call by value and call by reference? and advantages
41. What is function recursion?
42. Difference b/w function and macro?
43. Write a program for factorial..
44. What is array? and types.
45. What is IDE?
46. How will you find the first occurrence of given string in another string?
47. Syntax to findout last occurrence of  char in string.
48. What is self-referential structure.?
49. What is the return value of strcmp()?
50. What are the data types?
51. Print without ;
52. Write a program to modify const..
53. Set one bit and clear the same bit. (Syntax)
54. What is variable?
55. What is operators and types?
56. What is break and continue?
57. What is posted loop?
58. What is prototype?
59. State a execution process.
60. State types of errors.
61. What is call by  value and call by ref?
62. Exchange two values using call by ref and advantages.
63. What is const and volatile? can we use const and volatile togerther?
64. What are linkages?
65. What is static and dynamic allocation?
66. What is malloc, calloc and realloc with syntax.
67. Advantages and disadvantages of array.
68. What is typedef and typecasting?
69. What is void or generic pointer.
70. Types of problems in pointer? uninitialized pointer?
71. what is memory overwrite? over read? memory leak?
72. Write a program to remove duplicate no?
73. Write a program for ascending and descending order.
74. Write a program for strong no, perfect no, Armstrong no, Prime no, reverse no.
75. Syntax to reverse string.
76. What are keywords in c and Embedded c?
77. What are linker derivatives?
78. What is near, huge, far pointer?
79. What is stack pointer and heap?
80. Relation b/w scanf and atoi?
81. How will you point the pointer valule?
82. What does *ptr ++, ++*ptr?
83. What is command line arg and parameters?
84. Is it possible of nested structure and unions?
85. Is preprocessor directory is mandatory in C?
86. What is the type of real no by default ?
87. Sizeof(6.5), Sizeof(600), Sizeof('A')?
88. When you copy one structure variable to another variable, if you change anything, will it affect original date?
89. How will you copy one structure variable to another?
90. Is it possible to pass arguments to the function in runtime?
91. State some format specifiers.
92. Create pointers in union
93. Is it correct static i=20, unsigned i=30. What is the default data-type of these?
94. What is the value of signed int i=10? unsigned int i=-10?
95. is it possible to declare same variable name with different datatypes?
96. What are parameter passing in functions?
97. What is Pascal and Cdecl?
98. Cyclic property in C.
99. What is automatic type promotion in C?
100. Subtract 2 values without (-) operator?
101. Add 2 Values without (+) operator?
102. Diff b/w sizeof and strlen?
103. What is initialization, declaration, definition and assigning?
104. Types of sort?
105. Warnings in C
106. Difference b/w .com and .ext file?
107. What is TSO and TSR?
108. Write a program for the scanf statement to get char's even white space?
109. Write a program to get char and integer 'n' from user and display next 'n' char..
110. What is memory cell?
111. What is residence memory?
112. What is physical address?
113. Program for nCR
114. Convert string to integer..
115. Print no's from 0 to 100 without loop.
116. Convert char or string to Upper or lower case
117. which is correct unsigned int c, int unsigned c, unsigned c?
118. Size of int, char, double, float, long, void, long double, enum?
119. How will you find out max and min value of datatype?
120. Write equivalent binary value for (-7)?
121. Read these.. char (*ptr)[s], float (*ptr)(int), float (*ptr[3])(int).
122. write syntax for function pointer and pointer to the function array.
123. What is multilevel pointer? syntax
124. What is array of pointers? syntax
125. Pointer to the array of pointers? syntax
126. What is ellipsis?
127. Function overloading?
128. How will you calculate function size?
129. Types of function standard?
130. What is array of structure.?
131. State about file inclusion, #define, Conditional compilation preprocessor, undef.
132. What is miscellaneous preprocessor and types with syntax.
133. What are operators in preprocessors?
134. Use of #pragma?
135. Which preprocessor will you use while using asm in c program?
136. Will Turbo c support Assembly language?
137. What is #, ##, #line, # error? syntax.
138. What is header file?
139. Is it possible to use static variable or functions in header files.?
140. How will you store the value which is beyond the limit?
141. Program for leap year?
142. What is bit manipulation?
143. How will you access fixed memory using pointer?
144. What is structure self realization?
145. Application of structure?
146.How will you dereference void pointer?
147. Diff b/w  ++*ptr and *++ptr
148. Diff b/w int *ptr = (int *)0x30 , int *ptr, int i=20, ptr = &i, *ptr = (int *) 0x30.
149. What is const pointer and pointer to const? int *const ptr, const int *ptr?
150. Pointer applications?
151. What is linker and linkage?
152. Diff b/w debugging and testing.
153. What is the need for infinite loop in Embedded system?
154. How does the combination of function works and reduce memory?
155. What is cache and virtual memory?
156. What is memory optimization tech? and types? What is memset() memcpy() memmove()


Thanks all for reading this blog.. Share these to everyone who are all struggling to clear interview in embedded system.

I would like to receive comments and also suggestions.

If anyone is not finding the ans, then comment so that i would help.


Kindly comment if you have gathered something else other than these..

Enjoy the life.. All the best for your carrier growth..

Embedded system questions will be updated soon..

mail me @ manirandd@gmail.com 










No comments:

Post a Comment