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 c basic?
Why is struct padding needed?
What is typedef?
What are pointers?
Why is python slower than c?
How can I recover the file name given an open stream?
Explain how do you determine the length of a string value that was stored in a variable?
Do you know null pointer?
Who invented b language?
Are bit fields portable?
Can a file other than a .h file be included with #include?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
Which programming language is best for getting job 2020?
What is nested structure?
Whats s or c mean?