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 / arunthathi
sindhu is correct
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Are negative numbers true in c?
How to delete a node from linked list w/o using collectons?
Explain what are compound statements?
Explain c preprocessor?
What is function what are the types of function?
What is %s and %d in c?
Explain zero based addressing.
Do array subscripts always start with zero?
Write a program of advanced Fibonacci series.
which is an algorithm for sorting in a growing Lexicographic order
Can we change the value of constant variable in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What do you mean by Recursion Function?
What is local and global variable in c?
Does c have circular shift operators?