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

German spy agency warns of Chinese LinkedIn espionagePosted on Sunday December 10, 2017

Germany's spy agency says China is using the site to gather information on politicians.

Bitcoin futures trading begins on CBOE exchange in ChicagoPosted on Monday December 11, 2017

Trading in futures contracts is a step towards legitimising the digital currency, its supporters say.

Calls for Twitch to police 'sexual streaming'Posted on Saturday December 09, 2017

The game streaming site has been criticised for tolerating a growing number of 'sexual streamers'

Courtesy BBC News

AD BLOCKER DETECTED!

Advertisements help running this site for free.


To view the content please disable AdBlocker and refresh the page.

×