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
What are the types of type specifiers?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is console in c language?
What is the use of getchar functions?
What are different types of pointers?
What is class and object in c?
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
Explain what header files do I need in order to define the standard library functions I use?
What is extern storage class in c?
When should I declare a function?
How can you be sure that a program follows the ANSI C standard?
Write a program to print numbers from 1 to 100 without using loop in c?
What is methods in c?
Explain the array representation of a binary tree in C.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.