0 0 votes void printnum(int a) { if(a>1) { printnum(a/2); printnum(a/2); } pf("*"); } how many astreiks for printnum(5) Programming in C + – A_i_$_h 755 views answer comment Share Follow Print See 1 comment 1 1 comment reply joshi_nitish commented Aug 19, 2017 reply Follow flag 7 .. 0 0 replyShare Please log in or register to add a comment.
1 1 vote ans will be 7. papesh answered Aug 19, 2017 papesh comment Share Follow See 1 comment 1 1 comment reply A_i_$_h commented Aug 22, 2017 reply Follow flag 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 0 replyShare Please log in or register to add a comment.
0 0 votes I think it should be 7 * Surya Dhanraj answered Aug 19, 2017 Surya Dhanraj comment Share Follow 0 reply Please log in or register to add a comment.