tag:blogger.com,1999:blog-959939550345671470.post183407644099770992..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Test your C skills pdfPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-959939550345671470.post-56133429776220859482014-03-24T09:56:13.167+05:302014-03-24T09:56:13.167+05:30i cant find the download original link. please pos...i cant find the download original link. please post the linkAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-52306397786708334652013-03-27T14:50:20.288+05:302013-03-27T14:50:20.288+05:30answer should be equal to 43answer should be equal to 43Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-28557662097353708432013-02-01T13:07:46.059+05:302013-02-01T13:07:46.059+05:3021+ ++x+arr[--x]
21+2+arr[--x]
23+arr[--x]
23+2...21+ ++x+arr[--x]<br /><br />21+2+arr[--x]<br /><br />23+arr[--x]<br /><br />23+21 since arr[1] is already pre-incremented the value of arr[1] is 21<br /><br />=44<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-54991281486000893462012-07-14T00:57:15.073+05:302012-07-14T00:57:15.073+05:30++arr[++x] is parsed x=1(pre-increment)
thrfore ++...++arr[++x] is parsed x=1(pre-increment)<br />thrfore ++arr[++x] is equivalent to ++arr[1] which gives 20+1=21 <br /><br /><br />21+ ++x + arr[--x]<br /><br /><br />21+2+ arr[--x] <b>since x is pre-incremented </b><br /><br />23+arr[--x]<br /><br />23+arr[1] <b>since x is predecremented</b><br />23+20<br />=43Tharun kumar Ghttps://www.blogger.com/profile/06079255322050915867noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-36495194396779092032012-07-04T13:21:30.685+05:302012-07-04T13:21:30.685+05:30can anyone pls explain the solution for 5th questi...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 itAnonymousnoreply@blogger.com