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

a

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us the use of fflush() function in c language?

632


What are all different types of pointers in c?

572


How to get string length of given string in c?

602


What is external variable in c?

607


What are the storage classes in C?

619






What is the scope of static variable in c?

530


What is volatile c?

519


Can variables be declared anywhere in c?

614


What is the benefit of using #define to declare a constant?

601


Is c object oriented?

536


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2449


What is the difference between union and anonymous union?

832


application attempts to perform an operation?

1489


What is the maximum no. of arguments that can be given in a command line in C.?

662


What is the difference between if else and switchstatement

1309