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

WannaCry ransom notice analysis suggests Chinese linkPosted on Monday May 29, 2017

Researchers say the WannaCry ransom note was poorly translated - possibly using Google Translate.

BA boss 'won't resign' over flight chaosPosted on Monday May 29, 2017

Chief executive Alex Cruz says flight disruption at Heathrow and Gatwick had nothing to do with cost cutting.

Hay Festival 2017: Stephen Fry's warning for the webPosted on Sunday May 28, 2017

Delivering a lecture at the Hay Festival, the actor said society could face "dire consequences".

Courtesy BBC News