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
Is c pass by value or reference?
How can I remove the leading spaces from a string?
What does 1f stand for?
Is it acceptable to declare/define a variable in a c header?
What does printf does?
Is c is a low level language?
What is pre-emptive data structure and explain it with example?
What is the purpose of the statement: strcat (S2, S1)?
Explain what is gets() function?
What are global variables and how do you declare them?
Is there a way to switch on strings?
What does sizeof int return?
Explain the use of 'auto' keyword in c programming?
Write a program to generate the Fibinocci Series
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above