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 / enigma
Strictly speaking the answer is undefined until someone forces the output text from the console buffer to the screen.
Otherwise it would normally print 012510
Debug it inside MSVC and witness no output. In reality though most implementations will do a final flush to screen....
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of a ‘ ’ character?
Which is better between malloc and calloc?
What is a header file?
what is use of malloc and calloc?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Write a program in c to replace any vowel in a string with z?
What is the use of putchar function?
Explain what are compound statements?
Is return a keyword in c?
How pointers are declared?
Can a file other than a .h file be included with #include?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
List a few unconditional control statement in c.
swap 2 numbers without using third variable?
What is a file descriptor in c?