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
What are the complete rules for header file searching?
What does %c mean in c?
explain how do you use macro?
Which is better malloc or calloc?
Is file a keyword in c?
How to establish connection with oracle database software from c language?
What is getche() function?
how to build a exercise findig min number of e heap with list imlemented?
Can you define which header file to include at compile time?
Combinations of fibanocci prime series
What is the general form of function in c?
What is logical error?
How can you increase the size of a dynamically allocated array?
What is difference between array and pointer in c?
Describe the order of precedence with regards to operators in C.