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 / sridhara bd

0 1 2 5 10

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are runtime error?

629


How can I find out the size of a file, prior to reading it in?

622


write a program to find the given number is prime or not

3846


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

646


Why pointers are used?

633






What is a buffer in c?

575


How does #define work?

649


write a program to create a sparse matrix using dynamic memory allocation.

4373


What are the keywords in c?

643


write a program to concatenation the string using switch case?

1560


Why we write conio h in c?

567


Why do we use namespace feature?

583


What are the c keywords?

750


Which is the best website to learn c programming?

583


What are different storage class specifiers in c?

618