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

How can I change the size of the dynamically allocated array?

1091


What is wrong with this program statement?

986


write a program to find out prime number using sieve case?

2031


What are shell structures used for?

983


Which is better oop or procedural?

983


What is pointer to pointer in c language?

1045


How can I run c program?

1121


Explain what does the function toupper() do?

1003


What is the maximum length of an identifier?

1128


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1152


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1031


When can a far pointer be used?

960


What are the standard predefined macros?

1067


What is a stream in c programming?

1077


Explain how can I avoid the abort, retry, fail messages?

989