1 votes 1 votes fun(a,b) { if(a<0 && b<0) return 0; else if(a==0) return b+1; else if(b==0) return fun(a-1,1); else return fun(a-1,fun(a,b-1)); } compute fun(3,1) Programming in C programming-in-c programming + – srestha asked Oct 31, 2017 srestha 1.2k views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Anu007 commented Oct 31, 2017 reply Follow Share 13 ....... 1 votes 1 votes srestha commented Oct 31, 2017 reply Follow Share yes, plz elaborate can do with recursive tree? 0 votes 0 votes Arjun commented Oct 31, 2017 reply Follow Share @srestha yes, you can draw the recursion tree. 1 votes 1 votes Rupendra Choudhary commented Oct 31, 2017 reply Follow Share i'm finding no easy way to evaluate , solved by that expected ordinary method , got 13. if you want this ordinary solution i can post... but with this ordinary method , at exam time it's hard to keep patience and focus to solve correctly. after i got answers , there is kind of relations b/w values which i'm not able to interpret like f(1,x)=x+2 f(2,x)=2x+3.... 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes output is 13. Hira Thakur answered Oct 31, 2017 • selected Oct 31, 2017 by srestha Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Output will be 13 Rohit Gupta 8 answered Oct 31, 2017 Rohit Gupta 8 comment Share Follow See all 0 reply Please log in or register to add a comment.