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


Please Help Members By Posting Answers For Below Questions

What is the size of a union variable?

600


What is the difference between array and pointer?

569


Who invented bcpl language?

705


Explain what happens if you free a pointer twice?

613


Is c a great language, or what?

604






What does != Mean in c?

590


Explain built-in function?

593


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

614


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1866


In a switch statement, what will happen if a break statement is omitted?

602


What is the use of parallelize in spark?

576


For what purpose null pointer used?

606


What is an arrays?

655


What are the advantages of c preprocessor?

713


Distinguish between actual and formal arguments.

591