Beruflich Dokumente
Kultur Dokumente
Dear readers, these C Programming Interview Questions have been designed specially
to get you acquainted with the nature of questions you may encounter during your
interview for the subject of C Programming. As per my experience good interviewers
hardly plan to ask any particular question during your interview, normally questions start
with some basic concept of the subject and later they continue based on further discussion
and what you answer −
What are the valid places for the keyword break to appear.
What is difference between including the header file with-in angular braces < > and
double quotes “ “
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 1/8
3/22/2018 C Programming Interview Questions - tutorialspoint
S++ or S = S+1, which can be recommended to increment the value by 1 and why?
What is a token?
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 2/8
3/22/2018 C Programming Interview Questions - tutorialspoint
What is a preprocessor?
How can you print a \ (backslash) using any of the printf() family of functions.
What are the different ways of passing parameters to the functions? Which to use
when?
How many operators are there under the category of ternary operators?
What is a pointer to a function? Give the general syntax for the same.
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 3/8
3/22/2018 C Programming Interview Questions - tutorialspoint
Which compiler switch to be used for compiling the programs using math library
with gcc compiler?
Which operator is used to continue the definition of macro in the next line?
Which operator is used to receive the variable number of arguments for a function?
Which built-in library function can be used to re-size the allocated dynamic
memory?
Define an array.
Which built-in function can be used to move the file pointer internally?
What is a variable?
Which operator can be used to determine the size of a data type or variable?
Which operator can be used to access union elements if union variable is a pointer
variable?
Define a structure.
Name the predefined macro which be used to determine whether your compiler is
ANSI standard or not?
What is typecasting?
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 5/8
3/22/2018 C Programming Interview Questions - tutorialspoint
What is recursion?
What is the first string in the argument vector w.r.t command line arguments?
How can we determine whether a file is successfully opened or not using fopen()
function?
Can a function return multiple values to the caller using return reserved word?
Which built-in library function can be used to match a patter from the string?
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 6/8
3/22/2018 C Programming Interview Questions - tutorialspoint
Which control loop is recommended if you have to execute set of statements for
fixed number of times?
What is a constant?
Can we use just the tag name of structures to declare the variables for the same?
Apart from Dennis Ritchie who the other person who contributed in design of C
language.
What is Next ?
Further you can go through your past assignments you have done with the subject and
make sure you are able to speak confidently on them. If you are fresher then interviewer
does not expect you will answer very complex questions, rather you have to make your
basics concepts very strong.
Second it really doesn't matter much if you could not answer few questions but it matters
that whatever you answered, you must have answered with confidence. So just feel
confident during your interview. We at tutorialspoint wish you best luck to have a good
interviewer and all the very best for your future endeavor. Cheers :-)
YouTube 66K
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 7/8
3/22/2018 C Programming Interview Questions - tutorialspoint
https://www.tutorialspoint.com/cprogramming/cprogramming_interview_questions.htm 8/8