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 / vint

Ans: 9

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struct node in c?

626


What oops means?

588


What is use of integral promotions in c?

670


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1793


How can I manipulate individual bits?

613






ATM machine and railway reservation class/object diagram

4807


Are bit fields portable?

681


What are the advantages of using new operator as compared to the function malloc ()?

762


Write a program to swap two numbers without using third variable in c?

622


Are comments included during the compilation stage and placed in the EXE file as well?

674


How do you determine the length of a string value that was stored in a variable?

656


What's a good way to check for "close enough" floating-point equality?

632


What is size of union in c?

586


Why void is used in c?

571


Explain high-order bytes.

678