C Interview Questions
To appear for an interview as a C programmer, you have to face a lot of technical questions relating to C language. C interviewing questions will be extensively based on C language knowledge and programming. Thus, it is necessary to revise thoroughly before the interview.
We have listed here 50 Microsoft C interview questions that can be asked.
- What are the applications of C-language?
- What are arrays and pointers?
- When do you use 'far pointer'?
- What is pointer variable?
- What is a 'void pointer'?
- Describe 'static function'.
- What is the significance of the functions 'random ()' and 'randomize ()'? How do you use them?
- How to convert decimal to octal?
- How to convert octal to hexadecimal?
- How would you explain 'modular programming'?
- What is the difference between 'NUL' and 'NULL'?
- Is 'NULL' always defined as 0?
- What are 'auto-variables'?
- Name a few advantages of 'auto-variables'.
- Why do we access the integer and the character variables without declaring them in a program?
- Is it possible to create 'pointer' to unsigned int?
- How would you define 'generic pointer'?
- When do we use 'malloc ()'? When do we use 'calloc ()'? What is the difference between the two?
- What does 'bus error' mean?
- How do you differentiate between a 'test procedure' and 'test effort'?
- What is 'heap'?
- Which one is better to use a 'macro' or a 'function'?
- What is the significance of a 'sequence point'?
- How is the conversion from a string to a number done?
- How do we convert a number to a string?
- What is a 'string constant' and 'constant string'? What is the difference between the two?
- How would you make a program using switch case statement?
- What are the different sorting methods in C-language? Which one is the quickest?
- Define 'abstract base class'.
- Explain the difference between **p and &(*p)?
- What is a 'far pointer' used for?
- Can two pointers be added in C language?
- Without using the sqrt() function, how do we get square root of any number?
- Explain Fibonacci Series Program.
- What is a 'volatile modifier'? When is it used?
- What does 'pure virtual function' mean?
- How to write a C program without using main function?
- Write a C program to convert complex sentence to compound sentence.
- What is a program memory?
- How to find prime numbers between 1 to 100 using C program?
- What do you understand by 'conditional compiling'?
- Is there any difference between printf() and sprintf()?
- What is an internal static variable?
- What s an external static variable?
- What is the difference between an internal static variable and an external static variable?
- What is Preprocessor? What is the use of Preprocessor?
- What are the different types in preprocessor?
- How to find GDC of five numbers?
- What is pseudo code? Is it a programming language?
- What is realloc()?