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

ans is 9

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I invoke another program or command and trap its output?

626


Can we access array using pointer in c language?

652


Write a Program to find whether the given number or string is palindrome.

621


What are the advantages of c language?

674


What is the sizeof () operator?

630






Can a file other than a .h file be included with #include?

692


Explain the difference between null pointer and void pointer.

679


What is a function in c?

582


Are pointers really faster than arrays?

576


Explain what is the purpose of "extern" keyword in a function declaration?

631


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1991


Can math operations be performed on a void pointer?

593


Why c is called procedure oriented language?

589


What are called c variables?

582


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1872