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

ans is 9

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bin sh c?

584


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1788


What are the application of c?

652


Explain how do you list files in a directory?

620


What do you know about the use of bit field?

614






What is c language in simple words?

598


Explain argument and its types.

608


What is c basic?

603


Stimulate calculator using Switch-case-default statement for two numbers

2450


What is the difference between pure virtual function and virtual function?

654


What is calloc()?

631


What is main () in c?

589


What is advantage of pointer in c?

697


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1629


What is string constants?

662