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

ans: b

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program of prime number using recursion.

630


Why is a semicolon (;) put at the end of every program statement?

637


What are the ways to a null pointer can use in c programming language?

600


Explain the difference between exit() and _exit() function?

645


Tell me with an example the self-referential structure?

576






how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1504


Why is it important to memset a variable, immediately after allocating memory to it ?

1564


Can you write the algorithm for Queue?

1561


Tell me the use of bit field in c language?

636


What are the preprocessor categories?

647


Can we assign string to char pointer?

600


What is the meaning of ?

638


Who invented b language?

928


Can we replace the struct function in tree syntax with a union?

792


What are the types of type specifiers?

629