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

All are incorrect. Please try it on a machine and see...
The answer is 012510. Please not that it is 0 1 2 5 10 but
without spaces.

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 the use of the function in c?

1035


What is void c?

1114


What does printf does?

1263


What is a class c rental property?

1115


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1292


In a header file whether functions are declared or defined?

1138


How can I convert a number to a string?

1216


Can a file other than a .h file be included with #include?

1181


Can you assign a different address to an array tag?

1183


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1129


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1103


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

1036


What does & mean in scanf?

1122


why wipro wase

2327


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1229