in Programming in C
788 views
3 votes
3 votes

The sum of all values printed by Rec (6) is _______.

in Programming in C
788 views

15 Comments

edited by
34 ????
0
0
sir, it should be 34.

6 4 2 2 4 1 1 6 3 1 1 3
1
1

Anu007 Answer to wo hi jo aapne diya,But how negative value is printed,I am getting 34 because

0
0
i did print (a) instead of return(a);:(
0
0
negative values are never printed, if(n<=0), then Rec() only returns that value without actually printing it.
0
0
ye kya tha,asa kbse hone laga,Pls stick to the question.
0
0

ye kya tha,asa kbse hone laga

means?? 

1
1
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
Not to you,I am talking anu sir comment he printed the value instead of return, that I didn,t got
0
0
no need to say sir , learner.
0
0

Anu007 sir,Ty bz answer is given what u had mentioned I think I missed something,ty

0
0

 Anu007 Sorry Sir, thanks for pointing

0
0
but was is the answer 34 ??
0
0
I'm trying to find answer by drawing tree structure,for f(3) how tree will look like
0
0

look at this!!!

1
1

Please log in or register to answer this question.

Related questions