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

Without Computer networks, Computers will be half the use. Comment.

1877


What are the different file extensions involved when programming in C?

758


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

672


What is the value of c?

573


What is default value of global variable in c?

564






How can I swap two values without using a temporary?

617


What is 2c dna?

608


What is static volatile in c?

576


which is conditional construct a) if statement b) switch statement c) while/for d) goto

739


How can I generate floating-point random numbers?

606


Where local variables are stored in c?

556


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

640


What is the use of in c?

578


#include { printf("Hello"); } how compile time affects when we add additional header file .

1424


What are data structures in c and how to use them?

677