1 votes 1 votes closed as a duplicate of: made easy gate cs question bank void find(int x){ static int i=10,y=0; y=y+i; for(i;i>0;i=i-10){ if(x!=0) find(x-1); else{ printf("%d",y); } } } What will be output printed for find(4)? Programming in C programming-in-c ace-test-series programming + – srestha asked Mar 6, 2019 closed Sep 9, 2023 by makhdoom ghaya srestha 749 views comment Share Follow See all 9 Comments See all 9 9 Comments reply venkatesh pagadala commented Mar 6, 2019 reply Follow Share $50$ 0 votes 0 votes ankitgupta.1729 commented Mar 6, 2019 i edited by ankitgupta.1729 Mar 6, 2019 reply Follow Share https://drive.google.com/file/d/1pQoykqJzPcTIVRDRRVo4klDblybRX0cT/view 1 votes 1 votes srestha commented Mar 6, 2019 reply Follow Share @ankit can u explain - why i value decrementing one time only? 1 votes 1 votes ankitgupta.1729 commented Mar 6, 2019 reply Follow Share pardon mam...I did mistake that time..you are right..it will not be decremented one time :p 0 votes 0 votes srestha commented Mar 7, 2019 reply Follow Share ok, that means i value will be decremented, but decremented after x value is 0. why that? is it because first iteration of for loop, is after all function call is completed? 0 votes 0 votes ankitgupta.1729 commented Mar 7, 2019 reply Follow Share yes 0 votes 0 votes pradeepchaudhary commented Mar 7, 2019 i moved by srestha Mar 8, 2019 reply Follow Share output: 50 final value of i : -40 0 votes 0 votes trishalmandrik commented Mar 7, 2019 i moved by srestha Mar 8, 2019 reply Follow Share 50 is the right answer. 0 votes 0 votes Kaluti commented May 22, 2019 reply Follow Share 50 is a answer does i = I-10 because of tailed recursion will be executed after function call 0 votes 0 votes Please log in or register to add a comment.