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 enums in c?

649


What is array within structure?

574


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

644


Here is a neat trick for checking whether two strings are equal

558


program to convert a integer to string in c language'

1969






What is New modifiers?

655


What is the difference between test design and test case design?

1558


Explain the properties of union.

599


Who is the main contributor in designing the c language after dennis ritchie?

536


What is c preprocessor mean?

773


Why shouldn’t I start variable names with underscores?

613


Explain the use of #pragma exit?

684


What is struct node in c?

607


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

588


What does %p mean?

578