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

ans is 9

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you read a directory in a C program?

664


Explain indirection?

656


Can you tell me how to check whether a linked list is circular?

787


What is the use of ?

634


What is a scope resolution operator in c?

763






What is meant by gets in c?

617


Are comments included during the compilation stage and placed in the EXE file as well?

680


What does. int *x[](); means ?

645


Where local variables are stored in c?

564


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

615


What is bash c?

568


What is the newline escape sequence?

599


What 'lex' does?

725


What is difference between scanf and gets?

622


What is nested structure with example?

641