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

it will print "0" i.e zero since compiler wont get to the
print statement until the value is zero.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the similarities between c and c++?

1071


What is structure in c language?

1174


Explain indirection?

1142


Do you know the use of 'auto' keyword?

1202


What is the best way to comment out a section of code that contains comments?

1346


Can you write the function prototype, definition and mention the other requirements.

1137


Can include files be nested? How many levels deep can include files be nested?

1171


Why #include is used in c language?

1054


What is an array? What the different types of arrays in c?

1187


What is #error and use of it?

1285


Explain what is the best way to comment out a section of code that contains comments?

1141


What are the salient features of c languages?

1101


What is optimization in c?

1012


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3519


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

1043