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


Please Help Members By Posting Answers For Below Questions

Is c pass by value or reference?

593


How can I remove the leading spaces from a string?

627


What does 1f stand for?

604


Is it acceptable to declare/define a variable in a c header?

678


What does printf does?

738






Is c is a low level language?

558


What is pre-emptive data structure and explain it with example?

3203


What is the purpose of the statement: strcat (S2, S1)?

638


Explain what is gets() function?

623


What are global variables and how do you declare them?

612


Is there a way to switch on strings?

610


What does sizeof int return?

588


Explain the use of 'auto' keyword in c programming?

677


Write a program to generate the Fibinocci Series

656


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

740