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 / gg
0 1 2 5 10 is the answer. But can anybody explain why the
printing order 0 1 2 5 10. Why not 10 5 2 1 0 ? please...
Is it depends on stack allocation??
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
If fflush wont work, what can I use to flush input?
What is call by value in c?
What is structure data type in c?
What is the main difference between calloc () and malloc ()?
Is c weakly typed?
What is masking?
Explain the difference between structs and unions in c?
What are the two types of functions in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What does dm mean sexually?
What is meant by recursion?
Explain Basic concepts of C language?
List the difference between a While & Do While loops?
What is sizeof array in c?
what are enumerations in C