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
What is the use of the function in c?
What is void c?
What does printf does?
What is a class c rental property?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
In a header file whether functions are declared or defined?
How can I convert a number to a string?
Can a file other than a .h file be included with #include?
Can you assign a different address to an array tag?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Can you define which header file to include at compile time?
What does & mean in scanf?
why wipro wase
which is conditional construct a) if statement b) switch statement c) while/for d) goto