3 votes 3 votes The sum of all values printed by Rec (6) is _______. Learner_jai asked Dec 29, 2017 Learner_jai 733 views answer comment Share Follow See all 15 Comments See all 15 15 Comments reply Anu007 commented Dec 29, 2017 i edited by Anu007 Dec 29, 2017 reply Follow Share 34 ???? 0 votes 0 votes joshi_nitish commented Dec 29, 2017 reply Follow Share sir, it should be 34. 6 4 2 2 4 1 1 6 3 1 1 3 1 votes 1 votes Learner_jai commented Dec 29, 2017 reply Follow Share @ Anu007 Answer to wo hi jo aapne diya,But how negative value is printed,I am getting 34 because 0 votes 0 votes Anu007 commented Dec 29, 2017 reply Follow Share i did print (a) instead of return(a);:( 0 votes 0 votes joshi_nitish commented Dec 29, 2017 reply Follow Share negative values are never printed, if(n<=0), then Rec() only returns that value without actually printing it. 0 votes 0 votes Learner_jai commented Dec 29, 2017 reply Follow Share ye kya tha,asa kbse hone laga,Pls stick to the question. 0 votes 0 votes joshi_nitish commented Dec 29, 2017 reply Follow Share ye kya tha,asa kbse hone laga means?? 1 votes 1 votes Anu007 commented Dec 29, 2017 reply Follow Share yes nitish i was saying i took question wrongly ie.e didnt see return(a) is given not printf(a); learner when i say aisa hoga , i said i took it wrong. (when you ask question then be polite) 2 votes 2 votes Learner_jai commented Dec 29, 2017 reply Follow Share Not to you,I am talking anu sir comment he printed the value instead of return, that I didn,t got 0 votes 0 votes Anu007 commented Dec 29, 2017 reply Follow Share no need to say sir , learner. 0 votes 0 votes Learner_jai commented Dec 29, 2017 reply Follow Share @ Anu007 sir,Ty bz answer is given what u had mentioned I think I missed something,ty 0 votes 0 votes Learner_jai commented Dec 29, 2017 reply Follow Share Anu007 Sorry Sir, thanks for pointing 0 votes 0 votes Vaibhav Bhanawat commented Jan 15, 2018 reply Follow Share but was is the answer 34 ?? 0 votes 0 votes Ajay Jadhav commented Jan 16, 2018 reply Follow Share I'm trying to find answer by drawing tree structure,for f(3) how tree will look like 0 votes 0 votes akash.dinkar12 commented Jan 16, 2018 reply Follow Share look at this!!! 1 votes 1 votes Please log in or register to add a comment.