**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

Subscribe to:
Post Comments (Atom)

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

ReplyDelete++arr[++x] is parsed x=1(pre-increment)

ReplyDeletethrfore ++arr[++x] is equivalent to ++arr[1] which gives 20+1=21

21+ ++x + arr[--x]

21+2+ arr[--x]

since x is pre-incremented23+arr[--x]

23+arr[1]

since x is predecremented23+20

=43

21+ ++x+arr[--x]

ReplyDelete21+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

ReplyDeletei cant find the download original link. please post the link

ReplyDelete