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 is c system32 taskhostw exe?

979


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1057


What is a static function in c?

1108


What is meant by high-order and low-order bytes?

1005


How do you determine the length of a string value that was stored in a variable?

1083


In C language, a variable name cannot contain?

1224


When should you use a type cast?

1059


What are the advantages of the functions?

1099


What is the code for 3 questions and answer check in VisualBasic.Net?

2104


What is the best way to store flag values in a program?

1012


What is volatile keyword in c?

1000


What are register variables? What are the advantage of using register variables?

1132


How can I determine whether a machines byte order is big-endian or little-endian?

1006


Why malloc is faster than calloc?

1017


show how link list can be used to repersent the following polynomial i) 5x+2

2193