Tricky C Programming Interview Questions

January 3, 2012

Basics

There are many companies carrying out projects on C platform. If you have to face an interview in C-programming, it doesn’t mean that you will be working purely on that platform.

c programming questionsBut, the fact is that the interviewer will be checking your programming skills based on how you face the interview. Since C-programming is the basic of all programming languages, they expect every technical student to be aware of the basic programming skills.

Here are some of the commonly asked C Programming interview questions –

1. Under basics of C, there are chances of asking the difference between declaration and definition of a variable.

2. Do you think the Global variables will start out as zero?

3. Does C have boolean variable type?

4. Where are the variables defined in C?

5. What does the term storage class refer to?

6. What do you mean by auto, static, volatile, extern, const classes?

7. Do you know anything about typedef keyword?

8. Difference between constants defined through #define and constant keyword?

9. What do you mean by Trigraph characters?

10. How the floating point numbers are stored? What do you mean by IEEE format?

11. When do you think the register modifier will be used?

12. When will you use a type cast?

13. Can structures be assigned to variables and passed to and from functions?

Additionally, be prepared to answer questions on pointers, < malloc > or < calloc> functions, and constructors/destructors if the interviewers jumps on to C++

Subscribe

Subscribe to our e-mail newsletter to receive updates.

No comments yet.

Leave a Reply