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
For what purpose null pointer used?
What are extern variables in c?
Explain how do you sort filenames in a directory?
What is void pointers in c?
Write the control statements in C language
How can a program be made to print the line number where an error occurs?
How are pointers declared in c?
Write a program to swap two numbers without using the third variable?
Was 2000 a leap year?
What does %c mean in c?
What is the correct declaration of main?
What do you mean by a sequential access file?
how is the examination pattern?
Can the curly brackets { } be used to enclose a single line of code?
What is the right type to use for boolean values in c?