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

0 1 2 5 10 is the answer. But can anybody explain why the
printing order 0 1 2 5 10. Why not 10 5 2 1 0 ? please...

Is it depends on stack allocation??

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the complete rules for header file searching?

1131


What does %c mean in c?

1139


explain how do you use macro?

1207


Which is better malloc or calloc?

1157


Is file a keyword in c?

982


How to establish connection with oracle database software from c language?

2258


What is getche() function?

1088


how to build a exercise findig min number of e heap with list imlemented?

2127


Can you define which header file to include at compile time?

1070


Combinations of fibanocci prime series

1666


What is the general form of function in c?

1071


What is logical error?

1187


How can you increase the size of a dynamically allocated array?

1232


What is difference between array and pointer in c?

1141


Describe the order of precedence with regards to operators in C.

1100