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

8

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 call by value in c?

566


explain how do you use macro?

671


Calculate 1*2*3*____*n using recursive function??

1522


How can I split up a string into whitespace-separated fields?

573


Explain the properties of union.

615






How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1596


What is extern storage class in c?

519


Can main () be called recursively?

637


Why we not create function inside function.

1754


Can we access array using pointer in c language?

650


What is include directive in c?

654


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

765


What are linker error?

620


code for quick sort?

1626


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

840