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 / arunthathi
sindhu is correct
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Without Computer networks, Computers will be half the use. Comment.
What are the different file extensions involved when programming in C?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is the value of c?
What is default value of global variable in c?
How can I swap two values without using a temporary?
What is 2c dna?
What is static volatile in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
How can I generate floating-point random numbers?
Where local variables are stored in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is the use of in c?
#include
What are data structures in c and how to use them?