c programming interview question

29 Dec 2022 Balmiki Mandal 0 C Programming

Here are some basic C interview questions that you might encounter:

  1. What is C programming language?
  2. What is the difference between C and C++?
  3. What is a pointer in C?
  4. What is the difference between a pointer and an array?
  5. What is a structure in C?
  6. What is the difference between a structure and a union?
  7. What is a function in C?
  8. What is recursion in C?
  9. What is the difference between pass by reference and pass by value?
  10. What is a static variable in C?
  11. What is a file in C?
  12. What is the difference between text file and binary file?
  13. What is a header file in C?
  14. What is the difference between #include <file> and #include "file"?
  15. What is a preprocessor in C?
  16. What is the purpose of the main() function in C?
  17. What is the format specifier for a float data type?
  18. What is the difference between ++i and i++ in C?
  19. What is the difference between == and = in C?
  20. What is a NULL pointer in C?

These are just a few examples of the types of questions you may encounter in a basic C interview. It's important to have a solid understanding of the fundamentals of the language, as well as be able to demonstrate your ability to write and debug simple programs in C.

BY: Balmiki Mandal

Related Blogs

Post Comments.

Login to Post a Comment

No comments yet, Be the first to comment.