C Interview Question Answers

  1. Why C Programming Language is so Popular?
  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.



Get Free Tutorials by Email

About the Author

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

Today's Tech News

New seat alert app for pregnant commutersPosted on Sunday January 22, 2017

Developers launch a new app to help pregnant women get a seat on public transport while commuting.

Samsung confirms battery faults as cause of Note 7 firesPosted on Monday January 23, 2017

The firm says neither software nor hardware, other than the batteries, were at fault in Note 7.

China to crack down on censor-busting servicesPosted on Monday January 23, 2017

China is cracking down on the hi-tech ways citizens avoid official scrutiny of what they do online.

Courtesy BBC News