Mostly Asked C Interview Questions
C Interview Questions
C language is a high-level structured oriented programming language use to general purpose programming requirements. The main usage of C programming language is Operating Systems, Language Compilers, Text Editors, Assemblers, Modern Programs, Data Bases, Language Interpreters, Utilities and many more.
If you are preparing for the C or another language job interview, we have one of the biggest collection of C Interview Questions and C programs. C language is portable and available on all platforms. I have compiled some repeatedly asked C interview questions here. Some of them are very important C questions asked by employers like Google, Microsoft and IBM. A lot of C programming questions asked in interview are based on following information.
Most Popular C Programming Interview Questions:
- Who developed C Langauge?
- What is the modulus operator?
- Which of the following operators is incorrect and why? ( !=, <=, <>, ==)
- What is a stack?
- What are header files and what are its uses in C programming?
- What is Recursion?
- Why C is called Structured Programming Langauge?
- What is the output of the following code if value of str1 is “coder” and str2 is “programmer”?
#include<stdio.h>
#include<string.h>
void main()
{
char str1[100], str2[100];
printf("Enter the first string\n");
gets(str1);
printf("Enter the second string\n");
gets(str2);
if( strcmp(str1,str2) == 0 )
printf("Given strings are equal\n");
else
printf("Given strings are not equal\n");
}
9. What is the use of a ‘\0’ character?
10. C compiler Detects which Type of error?
Syntax Error
Run time error
logical error
semantic error