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 / code

Guest & Raj is correct.......
Please don't post the wrong answer if u r not clear about this

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suggesting that there can be 62 seconds in a minute?

598


What is scope rule of function in c?

552


What is the role of this pointer?

549


What is table lookup in c?

630


Is it possible to initialize a variable at the time it was declared?

757






Write a factorial program using C.

644


How can I delete a file?

630


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1498


Which is the best website to learn c programming?

583


What is a constant and types of constants in c?

604


Why is this loop always executing once?

617


Why we use break in c?

552


what are the advantages of a macro over a function?

647


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

585


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

669