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

sindhu is correct

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of macro in C language?

669


What are qualifiers?

621


Why is c so popular?

656


What is difference between constant pointer and constant variable?

633


What are the benefits of organizational structure?

577






Why clrscr is used after variable declaration?

1047


Explain how can a program be made to print the line number where an error occurs?

700


What is operator promotion?

635


Explain about the constants which help in debugging?

858


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1484


Explain the binary height balanced tree?

730


Which header file is essential for using strcmp function?

947


What is pointer in c?

747


Explain how do you determine whether to use a stream function or a low-level function?

632


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1543