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

8

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of type specifiers?

623


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2413


What is console in c language?

609


What is the use of getchar functions?

674


What are different types of pointers?

563






What is class and object in c?

589


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2517


Explain what header files do I need in order to define the standard library functions I use?

649


What is extern storage class in c?

513


When should I declare a function?

623


How can you be sure that a program follows the ANSI C standard?

1128


Write a program to print numbers from 1 to 100 without using loop in c?

640


What is methods in c?

641


Explain the array representation of a binary tree in C.

728


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

669