This blog will cover all important aspects of 'C' 'C++', 'Data Structures in C' and other Technical stuffs. In this blog you will find good C Interview Questions Answers. I will be posting both multiple choice and subjective type C interview questions and answers. Tutorials will be posted from time to time that will focus on problem solving.
C interview basic questions and answers for freshers
Latest collection of interview questions on C for freshers. Find output type c interview question involving string concept.
is Output of following c snippet?
Explanation: In the above
program role of %s is to display the string whose address is passed as an
argument. This is how a standard printf statement works in c language. Now
since we have passed s + 2 as an argument therefore first value of this
expression is evaluated. Here ‘s’ would refer to address of first character in
string ‘s’. Now printf would get address of third character (address of first
character + 2) as argument so it will display the string starting from third
position. Hence output would be ‘has’.