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 / mannucse
a
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the standard predefined macros?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What is the use of typedef in c?
What are global variables and explain how do you declare them?
What is typedef example?
What is calloc malloc realloc in c?
What is s in c?
Where register variables are stored in c?
Explain the advantages and disadvantages of macros.
Tell me what are bitwise shift operators?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
C program to find all possible outcomes of a dice?
How can I sort a linked list?
What is sizeof int?
Can a variable be both constant and volatile?