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

shobha is correct.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain b+ tree?

634


Is stack a keyword in c?

640


Explain Basic concepts of C language?

652


Why c language is called c?

573


Why is c called "mother" language?

866






why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1323


How can I handle floating-point exceptions gracefully?

640


Is c pass by value or reference?

605


Describe explain how arrays can be passed to a user defined function

609


Which is an example of a structural homology?

793


what is the format specifier for printing a pointer value?

617


What is the difference between far and near in c?

607


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2421


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

716


What is operator precedence?

648