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 / hussain reddy

9

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c pass by value or reference?

605


Sir i need notes for structure,functions,pointers in c language can you help me please

1953


Explain is it valid to address one element beyond the end of an array?

743


What are pragmas and what are they good for?

580


What is static identifier?

708






Why double pointer is used in c?

573


What is a c token and types of c tokens?

596


What is s in c?

623


What is a spanning Tree?

967


If null and 0 are equivalent as null pointer constants, which should I use?

583


What is the difference between array and pointer in c?

588


Why is extern used in c?

617


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1680


Is c call by value?

613


All technical questions

1516