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

ans is 9

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use header files in c?

582


write a c program in such a way that if we enter the today date the output should be next day's date.

1681


Explain the use of keyword 'register' with respect to variables.

590


What are near, far and huge pointers?

648


List the variables are used for writing doubly linked list program.

1623






Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

580


For what purpose null pointer used?

606


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

666


Write a C program in Fibonacci series.

635


What is pointer and structure in c?

574


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3341


Why isnt there a numbered, multi-level break statement to break out

587


Write a Program to accept different goods with the number, price and date of purchase and display them

5449


Is c pass by value or reference?

595


Which are low level languages?

636