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 the bubble sort algorithm.
What does static variable mean in c?
What are the advantages of c preprocessor?
What are types of functions?
What are the different types of endless loops?
what is the significance of static storage class specifier?
What is the difference between near, far and huge pointers?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What does 2n 4c mean?
Differentiate between #include<...> and #include '...'
Explain what will the preprocessor do for a program?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is wrong with this code?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?