4 4 votes The sum of all values printed by Rec (6) is _______. Programming in C + – 🚩 Duplicate | 👮 nirmal_aravind | 💬 “https://gateoverflow.in/196616/madeeasy-test-series-2018-programming-%26-ds-recursion” Learner_jai 1.9k views answer comment Share Follow Print See all 15 Comments 15 15 Comments reply Anu007 commented Dec 29, 2017 i edited by Anu007 Dec 29, 2017 reply Follow flag 34 ???? 0 0 replyShare joshi_nitish commented Dec 29, 2017 reply Follow flag sir, it should be 34. 6 4 2 2 4 1 1 6 3 1 1 3 1 1 replyShare Learner_jai commented Dec 29, 2017 reply Follow flag @ Anu007 Answer to wo hi jo aapne diya,But how negative value is printed,I am getting 34 because 0 0 replyShare Anu007 commented Dec 29, 2017 reply Follow flag i did print (a) instead of return(a);:( 0 0 replyShare joshi_nitish commented Dec 29, 2017 reply Follow flag negative values are never printed, if(n<=0), then Rec() only returns that value without actually printing it. 0 0 replyShare Learner_jai commented Dec 29, 2017 reply Follow flag ye kya tha,asa kbse hone laga,Pls stick to the question. 0 0 replyShare joshi_nitish commented Dec 29, 2017 reply Follow flag ye kya tha,asa kbse hone laga means?? 1 1 replyShare Anu007 commented Dec 29, 2017 reply Follow flag 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 2 replyShare Learner_jai commented Dec 29, 2017 reply Follow flag Not to you,I am talking anu sir comment he printed the value instead of return, that I didn,t got 0 0 replyShare Anu007 commented Dec 29, 2017 reply Follow flag no need to say sir , learner. 0 0 replyShare Learner_jai commented Dec 29, 2017 reply Follow flag @ Anu007 sir,Ty bz answer is given what u had mentioned I think I missed something,ty 0 0 replyShare Learner_jai commented Dec 29, 2017 reply Follow flag Anu007 Sorry Sir, thanks for pointing 0 0 replyShare Vaibhav Bhanawat commented Jan 15, 2018 reply Follow flag but was is the answer 34 ?? 0 0 replyShare Ajay Jadhav commented Jan 16, 2018 reply Follow flag I'm trying to find answer by drawing tree structure,for f(3) how tree will look like 0 0 replyShare akash.dinkar12 commented Jan 16, 2018 reply Follow flag look at this!!! 2 2 replyShare Please log in or register to add a comment.