C Interview Questions
C Interview Questions
com/c-programming/c-interview-questions-answers/
6. What is the difference between top down approach and bottom up approach in programming languages?
12. What are the key features of C language or what are the characteristics of C language?
15. What do you mean by high level, middle level and low level languages and give an example for each?
16. What is the difference between structured oriented, object oriented and non-structure oriented programming language?
23. What are all the sections that a C program may have and must have?
30. What is the difference between int, char, float and double data types?
46. What is the difference between variable declaration and variable definition in C?
62. What is the difference between single equal “=” and double equal “==” operators in C?
63. What is the difference between pre increment operator and post increment operator?
64. What is the difference between pre decrement operator and post decrement operator?
66. What will happen if break statement is not used in switch case in C?
69. What value will be 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 following variables? int X1 = 13/3; int X2 = 13%3;
71. What is the difference between auto variable and register variable in C?
72. What is the difference between auto variable and static variable in C?
76. If you want to execute C program even after main function is terminated, which function can be used?
83. What is pragma in C? Or how will you execute functions before and after main function in C program?
88. Is there any inbuilt library function in C to remove leading and trailing spaces from a string? How will you remove them in C?
101.Is pointer arithmetic a valid one? Which arithmetic operation supposed to be not valid in pointer? Why?
110.Can a pointer be freed more than once in C? What happens if we do so? Or can a pointer be freed twice in C?
112.How will you print the value and address of a pointer variable (example int *p) in C?
113.How will you print the value and address of a normal variable (example int p) in C?
114.What are library functions and their use in C language? Can we write our own functions and include them in C library?