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 does the characters “r” and “w” mean when writing programs that will make use of files?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Explain what is operator promotion?
about c language
What is the difference between fread buffer() and fwrite buffer()?
What is difference between array and structure in c?
Is c is a middle level language?
What is sizeof int?
how many errors in c explain deply
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
How to define structures? ·
What are categories used for in c?
Can stdout be forced to print somewhere other than the screen?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Explain how can I convert a string to a number?