If you have any queries or suggestions in
above C online practice test, please share it.
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
Subscribe to:
Post Comments (Atom)
21 comments:
It will be helpful if the explanation for the solutions is provided.It is difficult to understand.
guys can you help me find an online tutor,c programming is not easy for me.
It wil be very useful if explanation like before exams. plz give pxplanations
plz explain 14th one.
plz explain 14th & 20th
provide exaplations.... if u provide it will be very helpful.
output of Q5 will be 15 and its not in option
#include
int main(){
for(printf("1");!printf("0");printf("2"))
printf("Sachin");
return 0;
I think it is like this
for loop // it prints the value "1"
then it checks the condition part and prints "0" and once it prints 0 it returns true(1) and since its !printf("0") it will consider it as
!true=>!1=>0 so it wont proceed further and hence the output 10
but can u please tell how will it be 15?
it's difficult to me
variable declarations withn a for loop.
Q4 is it possble in C? :P LOL
anyone can be explain me Q7?
please append explanation and provide link for detailed description....hope to see soon...
please append explanation and provide link for detailed description....hope to see soon...
int z=(5,3,2); why z is assigned last value
Q5 answer should be 21. Precedence order - Higher to Lower - () then [] then ++ then +
so after increment value of i will be 3, hence a[3] + 3 + 3 = 21.
q.5 - ans. is 19
Q.5, Ans:- 19
1 a=5,6
a is assigned to 5 .
2 a=(5,6);//comma operator works left to right but returns ri8 most value
a is assigned to 6
there exists nothing such as a[3] in the program @bhanu, only what you have is a[0],a[1],a[2]
it should be 15
Post a Comment