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 / gg
0 1 2 5 10 is the answer. But can anybody explain why the
printing order 0 1 2 5 10. Why not 10 5 2 1 0 ? please...
Is it depends on stack allocation??
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is c system32 taskhostw exe?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is a static function in c?
What is meant by high-order and low-order bytes?
How do you determine the length of a string value that was stored in a variable?
In C language, a variable name cannot contain?
When should you use a type cast?
What are the advantages of the functions?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the best way to store flag values in a program?
What is volatile keyword in c?
What are register variables? What are the advantage of using register variables?
How can I determine whether a machines byte order is big-endian or little-endian?
Why malloc is faster than calloc?
show how link list can be used to repersent the following polynomial i) 5x+2