Test your C programming language skills for written test exam and interview pdf free download
This PDF documents keeps tricky questions and answers to test your c skills. To free download the pdf doc go to the File -> Download Original
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
5 comments:
can anyone pls explain the solution for 5th question. when the run the I get the output as 43. but i would like to the logic behind it
++arr[++x] is parsed x=1(pre-increment)
thrfore ++arr[++x] is equivalent to ++arr[1] which gives 20+1=21
21+ ++x + arr[--x]
21+2+ arr[--x] since x is pre-incremented
23+arr[--x]
23+arr[1] since x is predecremented
23+20
=43
21+ ++x+arr[--x]
21+2+arr[--x]
23+arr[--x]
23+21 since arr[1] is already pre-incremented the value of arr[1] is 21
=44
answer should be equal to 43
i cant find the download original link. please post the link
Post a Comment