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

int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15

Answer Posted / shobha

ans is 9

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

praagnovation

2298


Do you know pointer in c?

1059


What are header files in c?

1088


What does int main () mean?

1038


What are the advantages of using Unions?

1126


Can a function argument have default value?

1164


What is a static variable in c?

1138


What is the most efficient way to count the number of bits which are set in an integer?

1069


Who is the main contributor in designing the c language after dennis ritchie?

1012


Differentiate between full, complete & perfect binary trees.

1120


What is struct node in c?

1082


What is a program flowchart and how does it help in writing a program?

1150


What do you mean by invalid pointer arithmetic?

1092


What is the most efficient way to store flag values?

1198


Why should I prototype a function?

1209