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

Explain the bubble sort algorithm.

1078


What does static variable mean in c?

1113


What are the advantages of c preprocessor?

1268


What are types of functions?

1044


What are the different types of endless loops?

1082


what is the significance of static storage class specifier?

2265


What is the difference between near, far and huge pointers?

1099


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1382


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1954


What does 2n 4c mean?

1236


Differentiate between #include<...> and #include '...'

1066


Explain what will the preprocessor do for a program?

1072


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1162


What is wrong with this code?

1191


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1071