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
Where in memory are my variables stored?
What does do in c?
What is a pointer on a pointer in c programming language?
What is the use of structure padding in c?
How can I write a function that takes a format string and a variable number of arguments?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is function prototype?
What would be an example of a structure analogous to structure c?
What is a pointer in c?
Do you know the use of 'auto' keyword?
Why is c still so popular?
What does c in a circle mean?
What is the importance of c in your views?
Explain the difference between ++u and u++?
What is meant by high-order and low-order bytes?