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

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 the significance of an algorithm to C programming?

582


What does the characters “r” and “w” mean when writing programs that will make use of files?

841


What are header files in c programming?

644


How many types of sorting are there in c?

596


Can we compile a program without main() function?

620






Write a program for finding factorial of a number.

621


Why we use stdio h in c?

567


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1451


What is a header file?

627


what is the different bitween abap and abap-hr?

1732


What do you mean by dynamic memory allocation in c?

637


what is uses of .net

1258


How are structure passing and returning implemented?

583


What is bin sh c?

569


Explain what is the best way to comment out a section of code that contains comments?

708