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...

Evaluate:
int fn(int v)
{
if(v==1 || v==0)
return 1;
if(v%2==0)
return fn(v/2)+2;
else
return fn(v-1)+3;
}
for fn(7);

a) 10
b) 11
c) 1

Answer Posted / rajesh

b

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the types of polymorphism in c++?

1152


How do I download c++?

1058


Is c++ a good beginners programming language?

1125


Which operations are permitted on pointers?

1043


What does extern mean in a function declaration in c++?

1273


What is the use of dot in c++?

1130


How does c++ sort work?

1027


What is a type library?

1155


What is abstraction with real time example?

1207


Explain about Virtual Function in C++?

1088


What is a .h file c++?

1099


What is Destructor in C++?

1252


explain the reference variable in c++?

1135


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1063


What do you understand by zombie objects in c++?

1165