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 / sindhu
shobha is correct.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of external class?
Why can’t we compare structures?
What is difference between union All statement and Union?
What are the differences between new and malloc in C?
How can I find the modification date and time of a file?
Is boolean a datatype in c?
What is wrong with this program statement?
Write a program that accept anumber in words
What is the difference between NULL and NUL?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Can you assign a different address to an array tag?
What do you know about the use of bit field?
What are called c variables?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How do you determine a file’s attributes?