40 Best C Interview Questions and Answers

List of top 40 most frequently asked c interview questions and answers pdf download free

C Interview Questions and Answers List

  1. What is C language?
  2. What are the different storage classes in C?
  3. What is hashing?
  4. Can static variables be declared in a header file?
  5. Can a variable be both constant and volatile?
  6. Can include files be nested?
  7. What is a null pointer?
  8. What is the difference between calloc() and malloc() ?
  9. What is the difference between printf() and sprintf() ?
  10. How to reduce a final size of executable?
  11. What is the difference between strings and character arrays?
  12. Which bit wise operator is suitable for checking whether a particular bit is on or off?
  13. Difference between const char* p and char const* p
  14. What is the benefit of using an enum rather than a #define constant?
  15. What is the quickest sorting method to use?
  16. When should the volatile modifier be used?
  17. When should the register modifier be used?
  18. How can you determine the size of an allocated portion of memory?
  19. When does the compiler not implicitly generate the address of the first element of an array?
  20. Why n++ executes faster than n+1 ?
  21. What is the purpose of main( ) function ?
  22. Why should we assign NULL to the elements (pointer) after freeing them?
  23. What is dangling pointer in c?
  24. What are merits and demerits of array in c?
  25. Where are the auto variables stored?
  26. Difference between arrays and linked list?
  27. What is the use of typedef?
  28. What are library Functions?
  29. What is a pointer?
  30. What are macros? What are its advantages and disadvantages?
  31. What is difference between Structure and Unions?
  32. What are the advantages of using Unions?
  33. What is the difference between ordinary variable and pointer in C?
  34. What are segment and offset addresses?
  35. What is the difference between %d and %*d in c language?
  36. What is modular programming?
  37. Where are the auto variables stored?
  38. Define Operator, Operand, and Expression in ‘C’?
  39. What is use of void data type?
  40. What are differences between sizeof operator and strlen function?
This entry was posted in Interview Questions. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *