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
How a string is stored in c?
What is a method in c?
What is use of pointer?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Is it possible to execute code even after the program exits the main() function?
What is main () in c language?
What is the difference between single charater constant and string constant?
What is New modifiers?
Why header files are used?
What are the parts of c program?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What math functions are available for integers? For floating point?
What does %2f mean in c?
What is function definition in c?
What is clrscr in c?