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

0 1 2 5 10...Please don't post the wrong answer.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a byte, what is the maximum decimal number that you can accommodate?

1138


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4267


How can I get back to the interactive keyboard if stdin is redirected?

1188


Is c weakly typed?

1021


What is a const pointer in c?

1126


How a string is stored in c?

1069


What is the correct declaration of main?

1206


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1637


What is line in c preprocessor?

1056


Can you please explain the difference between syntax vs logical error?

1186


Is linux written in c?

1038


Lists the benefits of c programming language?

1138


Can you apply link and association interchangeably?

1123


What is adt in c programming?

1162


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1345