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 is call by value in c?
explain how do you use macro?
Calculate 1*2*3*____*n using recursive function??
How can I split up a string into whitespace-separated fields?
Explain the properties of union.
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is extern storage class in c?
Can main () be called recursively?
Why we not create function inside function.
Can we access array using pointer in c language?
What is include directive in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What are linker error?
code for quick sort?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.