Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

10,5,2,1

after that it terminated.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Function Pointer?

1186


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1129


What is structure in c explain with example?

1167


Is c++ based on c?

1080


What is function prototype in c language?

1038


Explain what is the stack?

1110


What is a double c?

992


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2105


How can you allocate arrays or structures bigger than 64K?

1150


What is a lookup table in c?

1124


What are the loops in c?

999


Write the Program to reverse a string using pointers.

1029


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2797


Where are local variables stored in c?

1048


What is the advantage of an array over individual variables?

1243