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 / sunil v r

5,2,1

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 scope of variable in c?

571


What is maximum size of array in c?

584


Why do we write return 0 in c?

555


What is #include stdio h?

687


What are the features of c languages?

630






What are formal parameters?

661


What is dynamic memory allocation?

811


What does volatile do?

567


What is the newline escape sequence?

589


What does c value mean?

629


What are conditional operators in C?

627


What is structure of c program?

607


Write a function that will take in a phone number and output all possible alphabetical combinations

605


What is structure data type in c?

572


Should a function contain a return statement if it does not return a value?

598