Saturday, October 1, 2011

Interesting C Programming interview questions

Hello all,
Everyone of us in software development field would have started our career with C programming language which is the powerful and structured PL. Even today lots of system programming like device driver development, firmware development and embedded system programming uses the most efficient C Programming language. Here I'd like to list down some of the interesting questions in this subject.

Interesting C Programming interview questions:

1. What is the difference between char *p[10] and char (*p) [10]?

2. Why union is required and give me some examples where you used it?

3. What is function pointer and where did you use that in your project?

4. Why static variable shouldn't be used in union?

5. How will you add two numbers without using + or ++ operator?

6. How will you reset the bit in a given position from the byte?

7. How will you toggle all the bits in byte?



No comments: