C Interview Question Answers

  1. Why We Use C Programming Language? Importance of C Language.
  2. What is the difference between C and C++?
  3. Why array index in C starts with 0?
  4. What is the use of conditional inclusion statements in C?
  5. What are the differences between break and continue statements in C language?
  6. What are the differences between break and exit() in C?
  7. What is the difference between for and while loop?
  8. What are the differences between static and dynamic (shared) library linking?
  9. What is the difference between structure and union in C?
  10. What are the differences and similarities between malloc and calloc in C?
  11. What is the difference between stack and heap memory segments?
  12. What is the difference between actual and formal arguments in C?
  13. What is the difference between call by value and call by reference in C language?
  14. How to compare and typecast function pointers in C?
  15. How to implement your own sizeof operator in C?

C PROGRAMS
  1. Write a C program to check if two integers have opposite or same signs using bitwise operators
  2. Write a C program to check if the underlying architecture is little endian or big endian.
  3. Write a C function to check if a given integer is odd or even using bitwise operators.
  4. Write a C program to count number of set bits in an integer.
  5. Write a C program to check if a positive integer is palindrome or not.
  6. Write a C program to swap two numbers using bitwise XOR operator and without using third temp variable.


Share this page on WhatsApp

Get Free Tutorials by Email

About the Author

is the founder and main contributor for cs-fundamentals.com. He is a software professional (post graduated from BITS-Pilani) and loves writing technical articles on programming and data structures.