0 votes 0 votes void printnum(int a) { if(a>1) { printnum(a/2); printnum(a/2); } pf("*"); } how many astreiks for printnum(5) A_i_$_h asked Aug 19, 2017 A_i_$_h 322 views answer comment Share Follow See 1 comment See all 1 1 comment reply joshi_nitish commented Aug 19, 2017 reply Follow Share 7 .. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes ans will be 7. papesh answered Aug 19, 2017 papesh comment Share Follow See 1 comment See all 1 1 comment reply A_i_$_h commented Aug 22, 2017 reply Follow Share under the if condition only two function calls are present the pf("*") is outside the loop so how can it be called along with the func calls like p(5) will gve p(2) and p(2) only it wont give p(2), p(2) and pf("*") right am getting a little confused please help 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes I think it should be 7 * Surya Dhanraj answered Aug 19, 2017 Surya Dhanraj comment Share Follow See all 0 reply Please log in or register to add a comment.