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

Ans: 9

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable and explain rules to declare variable in c?

555


Differentiate between a structure and a union.

768


Why n++ execute faster than n+1 ?

1851


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1591


How do you do dynamic memory allocation in C applications?

630






Do pointers need to be initialized?

562


How can this be legal c?

652


Why does everyone say not to use gets?

610


What is the modulus operator?

736


Tell us bitwise shift operators?

598


What are different types of variables in c?

571


Is c# a good language?

610


What is volatile variable how do you declare it?

566


What is the difference between formatted&unformatted i/o functions?

617


What is extern variable in c with example?

538