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 / raj
0 1 2 5 10...Please don't post the wrong answer.
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
How to define structures? ·
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Can stdout be forced to print somewhere other than the screen?
When should structures be passed by values or by references?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What are the advantages of using linked list for tree construction?
What is build process in c?
Explain how do you determine a file’s attributes?
What are void pointers in c?
What is static identifier?
What is the use of a ‘ ’ character?
Simplify the program segment if X = B then C ← true else C ← false
What is the purpose of void in c?
What is the use of #define preprocessor in c?
When the macros gets expanded?