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 / ravinderreddy
ans: b
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program of prime number using recursion.
Why is a semicolon (;) put at the end of every program statement?
What are the ways to a null pointer can use in c programming language?
Explain the difference between exit() and _exit() function?
Tell me with an example the self-referential structure?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Why is it important to memset a variable, immediately after allocating memory to it ?
Can you write the algorithm for Queue?
Tell me the use of bit field in c language?
What are the preprocessor categories?
Can we assign string to char pointer?
What is the meaning of ?
Who invented b language?
Can we replace the struct function in tree syntax with a union?
What are the types of type specifiers?