Wednesday 16 September 2009

c interview questions






         COMMONLY ASKED QUESTIONS IN INTERVIEW



1. In the following declaration statement

    char c=’A’;

Variable c stores one byte of memory space while character constants ‘A’ stores one byte memory space. How one byte variables can stores two byte character constant?
2. What is automatic type promotion in c?

3. Swap two variables without using third variable.

4. Write a c program

No comments:

Post a Comment