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

What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

683


in linking some of os executables are linking name some of them

1654


Why static is used in c?

627


What does 3 periods mean in texting?

602


How do you initialize pointer variables?

616






What is #include stdio h?

689


What do you mean by invalid pointer arithmetic?

637


How can I remove the leading spaces from a string?

638


What are header files and what are its uses in C programming?

640


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1499


Why does not c have an exponentiation operator?

631


Explain what are the __date__ and __time__ preprocessor commands?

596


What are local variables c?

554


What is the advantage of a random access file?

642


application attempts to perform an operation?

1497