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

c program for searching a student details among 10 student details

1656


What is a structure in c language. how to initialise a structure in c?

607


What should malloc() do?

645


What is the use of typedef in structure in c?

546


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

837






What is the process to generate random numbers in c programming language?

610


What is 2 d array in c?

558


How can I do graphics in c?

597


What is context in c?

541


What is action and transformation in spark?

597


Differentiate between declaring a variable and defining a variable?

607


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2055


What is a function in c?

574


Can the size of an array be declared at runtime?

610


If you know then define #pragma?

676