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 / amit
All are incorrect. Please try it on a machine and see...
The answer is 012510. Please not that it is 0 1 2 5 10 but
without spaces.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what is the difference between the expression '++a' and 'a++'?
What is gets() function?
Explain enumerated types.
Explain bit masking in c?
Which is best book for data structures in c?
What is a stream?
Can i use “int” data type to store the value 32768? Why?
How can I pad a string to a known length?
Under what circumstances does a name clash occur?
what is the syallabus of computer science students in group- 1?
Explain what does the format %10.2 mean when included in a printf statement?
Differentiate between the = symbol and == symbol?
What is main function in c?
What does the file stdio.h contain?
How can I write a function analogous to scanf?