fun(int x)
{
if(x > 0)
fun(x/2);
printf("%d", x);
}
above function is called as:
fun(10);
what will it print?
}
Answer Posted / raj
0 1 2 5 10...Please don't post the wrong answer.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
In a byte, what is the maximum decimal number that you can accommodate?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
How can I get back to the interactive keyboard if stdin is redirected?
Is c weakly typed?
What is a const pointer in c?
How a string is stored in c?
What is the correct declaration of main?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is line in c preprocessor?
Can you please explain the difference between syntax vs logical error?
Is linux written in c?
Lists the benefits of c programming language?
Can you apply link and association interchangeably?
What is adt in c programming?
Which control loop is recommended if you have to execute set of statements for fixed number of times?