C program code
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 / guest
b
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is the advantage of c?
provide an example of the Group by clause, when would you use this clause
What is an operator?
What is pointers in c with example?
What is the general form of function in c?
Explain is it better to bitshift a value than to multiply by 2?
What is the meaning of && in c?
Is it possible to initialize a variable at the time it was declared?
cavium networks written test pattern ..
How can I handle floating-point exceptions gracefully?
What is #include cctype?
Is javascript based on c?
Can you apply link and association interchangeably?
Explain what is wrong with this program statement? Void = 10;
What is the difference between single charater constant and string constant?