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 / ravinderreddy
ans: b
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how can f be used for both float and double arguments in printf? Are not they different types?
What are different types of pointers?
What are operators in c?
Why enum is used in c?
Define macros.
code for replace tabs with equivalent number of blanks
How many types of errors are there in c language? Explain
Why is #define used?
Do you know the purpose of 'register' keyword?
What are the Advantages of using macro
What is substring in c?
How do shell structures work?
find out largest elemant of diagonalmatrix
What is c language & why it is used?
Compare array data type to pointer data type