C program code

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

b

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does calloc stand for?

651


What is the hardest programming language?

671


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

634


Compare interpreters and compilers.

637


int far *near * p; means

3121






write a program to generate address labels using structures?

4007


How do I create a directory? How do I remove a directory (and its contents)?

605


What is the difference between strcpy() and memcpy() function in c programming?

626


What are reserved words with a programming language?

604


Is a house a shell structure?

697


How does placing some code lines between the comment symbol help in debugging the code?

548


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1728


How macro execution is faster than function ?

666


if p is a string contained in a string?

1404