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
simple program of graphics and their output display
Is the exit() function same as the return statement? Explain.
What are the benefits of c language?
write a c program for swapping two strings using pointer
Is it possible to pass an entire structure to functions?
What is scanf () in c?
What are the functions to open and close file in c language?
When should you not use a type cast?
What is the difference between far and near in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is a substring in c?
How do you define a function?
Why is %d used in c?
List the difference between a "copy constructor" and a "assignment operator"?
How can you avoid including a header more than once?