C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
in que no. 5 i got 19 as answer after compiling with gcc compiler instead of 21. is it compiler dependent. even the compiler given at the end of page on your website is also giving the output 19
in question 13 you are printing with specifier %d it will print the ascii of 8 that is 56. i found many mistakes in this blog and for gcc compiler it was huge please go through your own answer the answers given in this maximum are wrong.. carefull
32 comments:
in question no.13,the answer which i got aftr compilation was 56....
btw thanx alot!!..itz very useful...!!
Yes in Q 13 ans is 56. Compiler ignores null '\0' and prints ascii value of 8.
in que no. 5 i got 19 as answer after compiling with gcc compiler instead of 21. is it compiler dependent. even the compiler given at the end of page on your website is also giving the output 19
Hey....It is not null '\0'..
It is '\o8'...
o(abcd...o) != 0(Zero).
Very nice, this is very useful..
Ans for Q7 should b 12 11 12 !
sry...the ans 12 11 11 only...
plss..xplain me how ques 1. got 64 as the answer ..
i think in question no 11 we will not enter the for loop as it is having semicolon so output should be garbage as far as i know.
thanku it was very use ful
bt i hv prb in 19 ques as my ans is compiler error..
how to download this pdf files...?
VERY USEFUL AND GOOD EXPLANATION OF ANSWERS
it is very useful and good explanation for the questions
I Think Ans for Qn.19 is (E):Compiler Error na?
Excellent Bro...
really a short encyclopedia....
i want to write c program to send mail
help and advice will be appreciated
thanks
Yes you are correct. These questions are compiler dependent. One should do a pre-test before posting it over internet.
its very useful...! thank u..! :)
it is very good site..........it's very helpful for me
its very gud and equally helpful
Answer to 5 is compiler dependent
void main(){
int i=4,x;
x=++i + ++i + ++i;
printf("%d",x);
}
Answer comes in as 19 in several compilers.
Answer to 8 is Hello world11
on 17, you may want to mention that precedence plays a role here. for e.g
void main(){
int array[]={10,20,30,40};
printf("%d",(-2)[array]);
}
would result in garbage, if the sign affinity is given priority
ching chang chou
in question 13 you are printing with specifier %d it will print the ascii of 8 that is 56. i found many mistakes in this blog and for gcc compiler it was huge please go through your own answer the answers given in this maximum are wrong.. carefull
the ans is 12 11 12
in ques no 15 dangling pointer occur but it is also printing the result as 26 why and how???
ya true
the answer of Q5 is 18 ( = 5 + 6 + 7)
There is no such thing like final value
So many errors
according to my knowledge ';' is not used at the end of #define line
Post a Comment