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
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Explain pointer. What are function pointers in C?
In C, What is the #line used for?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Explain what is the difference between a string and an array?
Explain what is wrong with this program statement? Void = 10;
Can a pointer point to null?
Explain the difference between getch() and getche() in c?
What is function prototype in c language?
Why shouldn’t I start variable names with underscores?
What is #error and use of it?
Can a pointer be null?
Explain how do you declare an array that will hold more than 64kb of data?
Explain why can’t constant values be used to define an array’s initial size?
What are the different types of linkage exist in c?