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


Please Help Members By Posting Answers For Below Questions

What is the difference between fread buffer() and fwrite buffer()?

680


Is main is a keyword in c?

616


Explain modulus operator. What are the restrictions of a modulus operator?

605


Is c is a low level language?

570


What is c definition?

756






What is array of structure in c programming?

759


Write a program to check prime number in c programming?

610


What is pre-emptive data structure and explain it with example?

3218


Where static variables are stored in memory in c?

529


How do I get a null pointer in my programs?

626


Why & is used in scanf in c?

631


What is a structure and why it is used?

626


What does double pointer mean in c?

586


What is const keyword in c?

755


Discuss the function of conditional operator, size of operator and comma operator with examples.

686