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

C program code

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

error there is no keyword as then ,therefore it will
treat 'then' as a variable which wud lead it to compilation
error

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are the variables argc and argv are local to main?

1301


What is difference between structure and union?

1115


What is a char c?

1033


Explain how do you list files in a directory?

1059


What is function what are the types of function?

980


Why main is not a keyword in c?

1235


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3929


What does calloc stand for?

1147


Is c procedural or functional?

1006


How can I recover the file name given an open stream?

999


Why we use break in c?

989


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2112


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

1128


Ow can I insert or delete a line (or record) in the middle of a file?

986


What is the Purpose of 'extern' keyword in a function declaration?

1065