Interview Questions on Operators and Constants in C

by Sridhar Jammalamadaka on September 5, 2009


c interview questions

  1. How to swap two numbers using bitwise operators?
  2. Which bitwise operator is suitable for checking whether a particular bit is ON or OFF?
  3. Which bitwise operator is suitable for turning OFF a particular bit in a number?
  4. Which one is equivalent to multiplying an unsigned int by 2: left shifting by 1 or right shifting by 1?
  5. What is an Enumeration Constant?

About the Author:  Sridhar Jammalamadaka is the Editor of Interview Mantra. He's a typically non-typical Software Engineer from Pune, India. He likes entrepreneurship, web technologies and Micro Controller programming. He enjoys playing cricket and piano (but rarely does these activities). Through this website, he wishes to gather a large community of aspiring engineers, entrepreneurs and professionals from all parts of the globe. You can connect with him on Facebook - http://www.facebook.com/sridhar.j


2,274 readers have already subscribed to email updates!

Enter your email address:

Previous post:

Next post: