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

Do pointers store the address of value or the actual value of a variable?

606


How many types of arrays are there in c?

591


What is the use of getchar functions?

672


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

774


Is that possible to add pointers to each other?

892






What is main () in c language?

590


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

597


What is indirection? How many levels of pointers can you have?

653


Explain what is the advantage of a random access file?

657


Explain how can type-insensitive macros be created?

566


What is malloc return c?

596


Why is c called a mid-level programming language?

720


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1707


When should structures be passed by values or by references?

579


How many types of operator or there in c?

597